Forum Moderators: phranque
I manage a dating site and scammers from around the world register with it everyday. I've been using .htaccess to block whole countries but the list is growing too much and now I'm thinking to use the opposite approach: allow visitors to my register page only from usa and canada. How could I do this?
What happens if my .htaccess file is about 800kB? Does it use my web hosting bandwidth?
Thanks!
Not sure if htaccess allow CIDR notation like 58.0.0/8
[edited by: Wlauzon at 11:07 am (utc) on Sep. 7, 2007]
Wlauzon, how could I use [subnet-calculator.com...] to get all IPs from USA?
I have a list of USA IPs in the following format:
deny from 60.254.128.0/18
deny from 163.60.0.0/16
...
but its a .txt file of 980kb
We use both sites quite often to keep our ecommerce site blocks up to date, since we started blocking most African and China and a few others, our fraud orders have dropped 90%.
Blocking US numbers might be a problem because it has so many, but see here for some links [en.wikipedia.org...]
[edited by: Wlauzon at 9:36 pm (utc) on Sep. 7, 2007]
41.0.0.0/8
58.0.0.0/8
59.0.0.0/8
60.0.0.0/8
61.0.0.0/8
77.0.0.0/8
78.0.0.0/8
79.0.0.0/8
80.0.0.0/4 (as I recall, this one blocks all IP's registered with Afrinic but you might want to check, I made up list months ago and forgot some)
81.0.0.0/8
82.0.0.0/8
83.0.0.0/8
194.0.0.0/8
195.0.0.0/8
196.0.0.0/8
213.0.0.0/8
217.0.0.0/8
62.0.0.0/8
Those are the main ones. We also have a few subregions banned, like in the 212 range, but you have to be careful with some - for example 212 covers some spam countries but also some like Iceland and Denmark.
[edited by: Wlauzon at 12:44 am (utc) on Sep. 8, 2007]