Solved

Who can I encode my CodeIgniter PHP code?

Posted on 2011-09-22
4
1,288 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
  • 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

Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
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.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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…

762 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

19 Experts available now in Live!

Get 1:1 Help Now