| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|How do we block all traffic originating from a few nations?|
| 8:18 pm on Jun 3, 2011 (gmt 0)|
It seems like the vast majority of all brute force attacks to our server (well over 90%) and other unwanted scam/spam traffic comes from China, Mexico and Turkey.
Every day we blacklist their IPs but it's taking up lots of time and getting weary since it's a never-ending process what with 100s or 1000s of IPs potentially involved.
We asked our webhosting firm for instructions on how to block ALL traffic from the 3 nations but for some odd reason they ignore that question and instead say to continue blocking individual IPs.
There is little if any good reason anyone from those nations would want to visit our websites in the first place so we would not be losing quality traffic and legitimate business.
Can someone here tell us how to do it?
| 9:04 pm on Jun 3, 2011 (gmt 0)|
Various solutions ..depends if you have access to .htaccess on your site/server.. or not and if not then it also depends on what the server OS is ..
Question is better asked in apache forum..( unless you are on a windows server with asp pages, in which case ask in the MS forum ) there have been many threads on this in the past ..
What you are looking for is "geo-ip blocking" or "geo-ip banning".
| 5:14 am on Jun 4, 2011 (gmt 0)|
Thanks Leo, yes I can use .htaccess and the server is Linux with Cpanel.
Maybe a Mod can move this to the right forum?
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved