i thought you just wanted to find out who was using your scripts, i didnt realize your trying to protect them from being copied.
well, somewhere in your script you will need to call that class, and do something like
Code: Select all
if (!$FF_LISCENSE->authorized()) {
die('dont steal my script');
}
whats to stop me from removing those lines of code?
you can use encryption like zend encoder, which is pretty strong, but it can cracked,
someone can just write some code in C to make it spill php source if they really want to spend the time. (unlikely though, and wouldnt be easy)
zend encoder is very expensive too.
theres other cheaper alternatives, but at least the ones ive seen(i havent looked at many)
just mangle the source w/ lots of str_replace and for loops and then use eval(), which slows the scripts down alot,
no matter how fast they say it is.
im not saying not to use encryption,
if you really want to protect your scripts thats your best bet,
but they can be cracked(i cracked one in about 2 hours)
but the average user will probably never even try, and if they do may not be successfull unless they understand php well,
in which case, they may not even be using your script, but would be prob writing thier own scripts.
if you used a combination of the class you posted,
along w/ encryption your scripts would be pretty hard to steal,
but definately not impossible.
if you end up using encryption let me know,
send me an encrypted copy, i wanna see if i can crack it

(just for fun of course)