2

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?

Rob
  • 7,540
  • 25
  • 71
  • 113

1 Answers1

1

You could also query the DNS server of the domain, and ask it the IP of the 'authorized' web server.

Twister
  • 739
  • 4
  • 9
  • using : http://php.net/manual/en/function.dns-get-record.php or http://pear.php.net/manual/en/package.networking.net-dns.net-dns-resolver.query.php – Twister Jan 18 '11 at 07:41