Solved

Who can I encode my CodeIgniter PHP code?

Posted on 2011-09-22
4
1,351 Views
Last Modified: 2012-08-13
Hello,

After I complete my PHP project and deploy it in my client's server, who can I encode my project source code so my client can not copy it to another server or even code not change it.

If there is a plugin or something like for CodeIgniter framework will be appreciated.
0
Comment
Question by:Ahmed Merghani
[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
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:themrrobert
ID: 36582081
First, add code to a global include that says something like:

if($_SERVER['SERVER_NAME']!='www.myserver.com') die ('Invalid Server');

Then obfuscate your code with this:

http://www.codeeclipse.com/
0
 
LVL 8

Author Comment

by:Ahmed Merghani
ID: 36582239
Thanks for response themrrobert I test it but it did not obfuscate the variables even when I choose that option, so I do not think it is stable. And even more I do not trust it. If there is a desktop tool or steps that I can go throw, that will be help full.
0
 
LVL 13

Accepted Solution

by:
themrrobert earned 500 total points
ID: 36582661
1) Your server question is completely solved by the first part of my answer

2) Whenever possible, try to use double quotes " " to encapsulate your strings, this will help obfuscate the hardcoded strings, and yes that project is not 100% complete, but you are able to trust it.

3) With any obfuscator, be sure to thoroughly test your code to make sure it works before you deploy it. No obfuscator is 100% perfect, and some more complicated routines could possibly become broken, which is why you need to thoroughly test your code.

4) additional obfuscators:

http://www.raizlabs.com/software/phpobfuscator/
not maintained since 2007
http://pobs.mywalhalla.net/
not maintained since 2003

This is probably the best tool, and closest to what you are looking for:
http://www.seocompany.ca/software/free-encryption-software.html
There are 2 professional-grade tools here, one is 250$ and the other is $199

This is the best option, but obviously you get what you pay for. If you want free, it's going to be buggy.
0
 
LVL 8

Author Comment

by:Ahmed Merghani
ID: 36707670
Thanks themrrobert for reply and sorry for the delay.

I will check your links soonest.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
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…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

733 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