Welcome to WebmasterWorld Guest from 126.96.36.199
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?
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 188.8.131.52/18
deny from 184.108.40.206/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]
220.127.116.11/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)
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]