Country IP address

Posted By: palacio ()
Posted On: 2005-Oct-20 13:28

Is it possible to block an IP addess of a specific country? I do not what them to see my website to avoid competitionwink


Posted By: thinkbot ()
Posted On: 2005-Oct-29 21:52

yes, its possible, I written that


Posted By: lizardz ()
Posted On: 2005-Oct-29 23:13

yes, it's easy, just get the ip range, use a regular expression blocking pattern that will cover all versions of the ip address, ip is I think $_SERVER['REMOTE_ADDRESS'];
Lots of sites do that.

You can run that through .htaccess or httpd.conf also if the ip range fits a pattern you can create, very easy to do.