Welcome to WebmasterWorld Guest from 107.21.183.163

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

How do we block all traffic originating from a few nations?

     

trader

8:18 pm on Jun 3, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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?

Leosghost

9:04 pm on Jun 3, 2011 (gmt 0)

WebmasterWorld Senior Member leosghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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".

trader

5:14 am on Jun 4, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks Leo, yes I can use .htaccess and the server is Linux with Cpanel.

Maybe a Mod can move this to the right forum?