Search code examples
phpdnsipblock

how to run php script only on the specified server - based on IP or domain name?


Do you know any ways to do that? I want to secure my script to run only in one place. Is it possible?


Solution

  • possibly the easiest way to do this would be to check a hardware identifier, such as the network card's MAC address, and encrypt the PHP code using something such as Ion Cube so that someone can't simply edit the PHP and change the MAC address being checked for.