简体   繁体   中英

Checking hosts file entry with PHP?

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?

您还可以查询域的DNS服务器,并询问“授权” Web服务器的IP。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM