Possible Duplicate:
Creating a License System
I have an script file (license.php) in a project and I need to know the exact what domain and ip is server is running now. I try too use $_SERVER['HTTP_NAME']
and $_SERVER['SERVER_ADDR']
but it can nulled very easy by renaming license.php to license.org.php and make another license.php file and on that change $_SERVER['HTTP_NAME']
and $_SERVER['SERVER_ADDR']
to a valid license and require license.org.php. so how I can get the real HTTP_NAME and SERVER_ADDR? any solutions?
NOTE: all php files will encrypt by IonCube, so source codes is not available to users.