Solved

Encrypt my PHP script for copy protection distribution

Posted on 2009-07-08
1
1,654 Views
Last Modified: 2013-12-13
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
0
Comment
Question by:pmsguy
1 Comment
 
LVL 12

Accepted Solution

by:
jet-black earned 500 total points
ID: 24808710
You can:

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

<?php
$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
http://www.ioncube.com/online_encoder.php
and upload your zip file then encode with ionCube encoder.

http://www.ioncube.com/pricing.php

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

Regards,
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article discusses how to create an extensible mechanism for linked drop downs.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now