On 10-08-20 03:46 PM, Tobias Eichner wrote:
Why do you need any obfuscator?  If you want to protect your code from
web access, put it in a module in a directory that cannot be access from
the web and put a stub that calls the module at the site.

It's not as easy as this, since people receive the source code files.


No, they don't. The code is executed on the web server. They don't have access to the code at all.

Put your code in a module, say /projects/foo/Foo.pm

Then put this program in the cgi-bin:

#!/usr/bin/perl

use strict;
use warnings;

use lib '/projects/foo';

use Foo.pm;

__END__

Since the web server does not offer /projects/foo as a URL, it cannot be accessed from the web.


--
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

The secret to great software:  Fail early & often.

Eliminate software piracy:  use only FLOSS.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to