Zen Cart Logo
Forums / General Questions / I need some IP blocking advise please

I need some IP blocking advise please

Locked

Views: 2,741

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
25 Apr 2007, 3:30 PM
#1
wondergirl avatar

wondergirl

Zen Follower

Join Date:
Jul 2005
Posts:
108
Plugin Contributions:
0

I need some IP blocking advise please

The past few days I have been getting a myriad of customer logins from addresses in Brazil (which I do not service) and I would love to know if there is a way to block whole countries as opposed to having to set up a ton of ip deny rules in my htaccess file?

It seems the sooner I delete their customer info, and deny their ip addresses, they are back with a vengeance using another ip address!!

It's maddening, and I like to fix this issue as soon as possible. Any help would be greatly appreciated. Thanks! ;)

25 Apr 2007, 3:40 PM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: I need some IP blocking advise please

put this in the root htaccess
deny from 200.190.165.8/29 #brazil

25 Apr 2007, 4:05 PM
#3
wondergirl avatar

wondergirl

Zen Follower

Join Date:
Jul 2005
Posts:
108
Plugin Contributions:
0

Re: I need some IP blocking advise please

Merlinpa1969:

put this in the root htaccess
deny from 200.190.165.8/29 #brazil

Merlin: Problem is, there are other IP's coming in as being from Brazil also, such as IP's starting with 201 and 189 also. :(

25 Apr 2007, 4:09 PM
#4
ryanf avatar

ryanf

New Zenner

Join Date:
Mar 2007
Posts:
32
Plugin Contributions:
0

Re: I need some IP blocking advise please

There is a thread about 10 down from you taking about the same exact thing

http://www.zen-cart.com/forum/showthread.php?t=61654

3 May 2007, 1:29 AM
#5
wondergirl avatar

wondergirl

Zen Follower

Join Date:
Jul 2005
Posts:
108
Plugin Contributions:
0

Re: I need some IP blocking advise please

ryanf:

There is a thread about 10 down from you taking about the same exact thing

http://www.zen-cart.com/forum/showthread.php?t=61654

I've read that whole thread, and incorporated the suggested .htaccess suggestions. I am finding it also does not work. The only thing that's been working is to put deny from 200. or alternatively deny from 201. BUT...I am not so certain that ALL 200 and 201 ip addresses are exclusively from brazil. I could be losing u.s and can. customers right?

I'll try to explain what the original problem is. I have a notorious amount of bogus acct logins all coming from these brazilian ip addresses. I take off the deny from 201. or deny from 200. and they start up again. Someone/or more than one person has been trying constantly to do this to my site.

3 May 2007, 2:21 AM
#6
wondergirl avatar

wondergirl

Zen Follower

Join Date:
Jul 2005
Posts:
108
Plugin Contributions:
0

Re: I need some IP blocking advise please

I did find a page that helps immensely in finding "whole" country ip listings in case anyone needs it in the future (wanting to block large blocks of ips from one specific country)
http://software77.net/cgi-bin/ip-country/geo-ip.pl

10 May 2009, 4:17 PM
#8
wondergirl avatar

wondergirl

Zen Follower

Join Date:
Jul 2005
Posts:
108
Plugin Contributions:
0

Re: I need some IP blocking advise please

limelites:

There is a mod for this guys:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1203

That helps if you "do not want to ship" to those countries, but it doesn't ban countries from visiting your site. I wanted to ban them as they were doing things I did not want them to. If you kwim.

23 May 2010, 2:06 PM
#9
tonyb avatar

tonyb

New Zenner

Join Date:
Nov 2008
Posts:
4
Plugin Contributions:
0

Re: I need some IP blocking advise please

I use https://www.blockacountry.com really simple to use :smile:

23 May 2010, 9:50 PM
#10
g1smd avatar

g1smd

Zen Follower

Join Date:
Mar 2010
Location:
UK
Posts:
449
Plugin Contributions:
0

Re: I need some IP blocking advise please

I have a site where only visitors from Europe, US/Canada, Australia/New Zealand can view the site.

IP bans for Central and South America, Middle East, Africa and Asia, have kept out tens of thousands of unwanted access attempts in the last year and a bit, and have allowed less than 20 accesses from those areas (mainly using IPs that were accidentally missed off the banning list).

Banned IPs get to see a three page mini-site and there's a special contact address noted too. In more than three years, only two people have used that contact address to say they couldn't see the whole site - both times because their ISP used a non-standard IP block which we had banned, which we then unblocked by request.