Web Hosting Talk







View Full Version : PHP Encoding


FrozenWire
12-29-2004, 02:44 PM
I was looking for a simple, cheap way to encode some php scripts and came accross the following if anyone is intrested.

These are fairly easy to decode if you know what you are doing so you have been warned but if you are looking for a free alternative to protect your code, here you go:

Freelock:
http://freelock.sourceforge.net

It did take some trouble to figure out why it was throwing errors but you need php4.3 or greater I believe and everything in your scripts need to be in single <? ?> (including html). It also can be bound to hostnames and ips.

Another one is:
http://richard.fairthorne.is-a-geek.com/utils_obfuscate.php

Havent tried it but another alternative for encoding scripts.

For about $.10 a file,
http://ioncube.com has a online encoder


Enjoy

linux-tech
12-29-2004, 10:26 PM
Turck (http://turck-mmcache.sourceforge.net/) is one of the best optimizers/encoders I've seen around, and yes, it's free. If you use their code, it's very simple to compile any code.

I'd advise AGAINST using ION because it's, well, it's poorly written code, and it insists on taking over your complete php installation. If you've got something like CPanel, it will complain about sourceguardian, it will complain about Turck (unless you're using the loader, not the actual cache), it's just a big mess.

Turck is the best thing that I've seen for encoding in the past few years, you can run an optimizer OR a loader straight from the php settings and it works like a charm.

FrozenWire
12-30-2004, 10:25 AM
Doesnt truck use a module that needs to be installed?

sasha
12-30-2004, 10:46 AM
Originally posted by FrozenWire
Doesnt truck use a module that needs to be installed?

It requires a loader which can be called right from your script with dl(). It is true encoder, easy to use and free. But it is dead and there were no new developments on it for over a year. I think i read someplace that author was hired by Zend people.

Anyway this is the future of what was once turck.

http://eaccelerator.sourceforge.net/Home

I did not use eaccelerator myself but as it already supports PHP5, which turck will never do, I will have to try it sooner or later.

innova
01-02-2005, 11:06 PM
I'd advise AGAINST using ION because it's, well, it's poorly written code, and it insists on taking over your complete php installation.

Talking out of one's rear, I would say.

I would like to hear why you think that:

1) Its poorly written. Since you havent the source code, a fairly silly argument. Perhaps what you meant to say is that its features are poorly implemented. If so, please enlighten us what is poorly done.

2) It "takes over" your installation (umm.. not mine?). It comes with loaders, which any novice can simply install in all of 10 seconds.

Pheaton
01-02-2005, 11:22 PM
Originally posted by linux-tech
I'd advise AGAINST using ION because it's, well, it's poorly written code, and it insists on taking over your complete php installation. If you've got something like CPanel, it will complain about sourceguardian, it will complain about Turck (unless you're using the loader, not the actual cache), it's just a big mess.



Ok... you must have done something wrong then...

cPanel doesnt complain about my IonCube installation, and its very well written and implemented.

It works great for us. :rolleyes:

Rich2k
01-03-2005, 07:57 AM
I use ionCube encoder and it's great. Scripts run faster as well.