Reputation: 8101
I'm creating a 'domain locking' script. Basically, the script will check my website to make sure that the host its running on is allowed to run it.
I don't want them to be able to modify their host file to reroute the connection.
Is there a way to check this and/or prevent it?
Upvotes: 2
Views: 1921
Reputation: 724
You could also query the DNS server of the domain, and ask it the IP of the 'authorized' web server.
Upvotes: 1