Solved

Encrypt my PHP script for copy protection distribution

Posted on 2009-07-08
1
1,745 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while back when OPSMGR 2012 was released we were very excited about getting it into our environment and upgrading our 2007 implementation,  we started our planning and we then proceeded with our implementation. All went as planned & our system …
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

707 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