开发者

PHP Filter non-usa Visitors

开发者 https://www.devze.com 2023-03-20 00:11 出处:网络
Anyone have a solution, preferably free, to be a开发者_运维问答ble to take anyone hitting the site from a non-usa IP address and send them to a page saying \"For US visitors only\"?See this tutorial.

Anyone have a solution, preferably free, to be a开发者_运维问答ble to take anyone hitting the site from a non-usa IP address and send them to a page saying "For US visitors only"?


See this tutorial. You can filter non-US IPs with the codes in tutorial. It requires PHP and MySQL.


You need a database of IP addresses. http://www.maxmind.com/app/geoip_country Something like this should do it

0

精彩评论

暂无评论...
验证码 换一张
取 消