且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何限制哪些国家可以查看我的网站(PHP)

更新时间:2023-12-02 15:44:04

Use an IP geolocation database (some are free) and $_SERVER["REMOTE_ADDR"] to get the visitor's IP address.

http://www.maxmind.com/app/geolitecity is a free (less accurate) version of a commercial one.

相关阅读

推荐文章