@alain34
Can he find it if he uses his least favorite search engine?
:) Kidding!
Main Topics
Browse All TopicsHello
I've written a site in PHP and my client is worried that the source code could be accessed/modified by their clients. I suggested that we could scrabble the source code so it still functions the same way but when you look at the code most of the variables, custom function names, etc are changed to prevent a PHP programmer from understanding the code well enough to make changes.
Does anyone know of a way or an existing piece of software to do this.
Regards
Jonathan
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The most fool-proof way to do this is to use Zend Gaurd or IonCube:
http://www.zend.com/en/pro
http://www.ioncube.com/
Unfortunatly both these products cost money and require hosting companies to provide support.
All other options can be hacked to some degree.
However you can use a combination of tricks to achieve good protection.
Take a look at PHP's native tokenizer support:
http://www.php.net/tokeniz
This can be used to break your code into such small pieces (very close to compiled) that it would be nearly impossible to get the original source code.
PHP Trasher uses this and other methods to obfuscate code:
http://www.phpclasses.org/
Also, before you obfuscate your code you should first add something in your code to prevent it from working on unauthorized websites.
The following code will cause your application to fail unless it is run from example.com or any sub-domain of example.com such as:
www.example.com
subdomain.example.com
www2.example.com
If some one tries to run this from www.hacker.com it would fail.
Business Accounts
Answer for Membership
by: alain34Posted on 2008-10-30 at 09:57:26ID: 22842905
Hello jwfranklin,
Products/O bfuscators / PHPObfusc ator.html
You should use a php obfuscator. Use your favorite search engine and pick one. Free and commercial obfuscator are available.
http://www.semdesigns.com/
Regards,
alain34