Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Encrypt my PHP script for copy protection distribution

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

609 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