Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
mbhkewl
Joined: Aug 25, 2004
# Posts: 4
|
Posted: 2004-Aug-25 13:54
Hello!
I have a perl script that I wish to protect its source code ... the only "simple" way I could find is by using an encryption script (http://richard.fairthorne.is-a-geek.com/utils_obfuscate.php)
Now, I don't want to encode the whole script, I just put a simple IF statement and it should check what I need I encoded this statement with essential variables such that if the user deleted the encoded test, the script fails.
Unfortunately, perl fails to read that encoded segment :/
Here's the segment I need to encode ::
my($location, $other_headers)= @_ ;
if ($ENV{'HTTP_HOST'} ne "www.site.com" {
$location="http://place.org/";
}
print "$HTTP_1_X 302 Moved 15 12", $NO_CACHE_HEADERS,
"Date: ", &rfc1123_date($now,0), " | | |