?
Solved

Encrypt my PHP script for copy protection distribution

Posted on 2009-07-08
1
Medium Priority
?
1,771 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
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…
Suggested Courses

764 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