Encrypt my PHP script for copy protection distribution

What is the best and inexpensive way to encrypt my PHP scripts for distribution to other sites.  

I want to guard against people copying my applications to other servers.

Here is an example: http://www.freedownloadscenter.com/Web_Authoring/Scripting_Tools/PHP_LockIt____PHP_script_encoder.html
Who is Participating?
jet-blackConnect With a Mentor Commented:
You can:

1. First put this code to the top of your PHP scripts you want to encode:

$s_host_l = strtolower($_SERVER['HTTP_HOST']);
if (($s_host_l != "site.com") && ($s_host_l != "www.site.com")) { echo "wrong server"; exit(); }

Note: site.com is the website that you'll allow your scripts to run.

2. Zip all your script you want to encode.
3. Go
and upload your zip file then encode with ionCube encoder.


It is very effective way to protect your scripts.
You'll need Ioncube Loader to be installed to the server that your scripts will run on.
It is also very simple. Just look to the page http://www.ioncube.com/loaders.php

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.