| 11:06 am on Sep 7, 2007 (gmt 0)|
We have about 50 countries totally blocked with about 15 lines.
Not sure if htaccess allow CIDR notation like 58.0.0/8
[edited by: Wlauzon at 11:07 am (utc) on Sep. 7, 2007]
| 11:13 am on Sep 7, 2007 (gmt 0)|
If you have php on your site you can do this quite easily with geo_ip. It will tell you what country the visitor is from and you can show a different page to non-us and canada visitors.
| 2:37 pm on Sep 7, 2007 (gmt 0)|
Hi charlier, my website uses .tpl files but shows them as .html pages
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 220.127.116.11/18
deny from 18.104.22.168/16
but its a .txt file of 980kb
| 9:33 pm on Sep 7, 2007 (gmt 0)|
That site only does the conversion to a CIDR, you have to get the IP's from other sources, but [ipdeny.com...] has a complete listing and will even make some of the lists for you. It also lists quite a few of the CIDR's for specific countries.
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]
| 9:54 pm on Sep 7, 2007 (gmt 0)|
|We have about 50 countries totally blocked with about 15 lines. |
That's incredible. If you are allowed to provide those 15 lines in a posting here, we will chant your name in high praise under the next full moon!
| 12:41 am on Sep 8, 2007 (gmt 0)|
Hmm it won't let me do a cut and paste, so I will just post a few of them manually. Make sure you check the countries so you don't ban something you want to allow. Mostly we block the majority of the ex-Soviet block and nearly all of Africa except South Africa. Our list is mainly to stop the fraud, so it may not apply if you are blocking for other reasons.
22.214.171.124/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]
| 2:30 am on Sep 8, 2007 (gmt 0)|
Thank you! Not only will this help with cutting down on the possibility of fraud, but for those of us who never do any business whatsoever outside of the USA, it will save a ton of bandwidth. Much appreciated...