The only thing that comes to mind, and I think this is how most do it, is to Zend encode at least part of the script and use a 'phone home' function that basically tells you the hostname/domain that the script is being used on. There used to be another encoder/compiler that was really cheap but I can't remember the name of it
