Forum Moderators: DixonJones

Message Too Old, No Replies

Banning IPs & the ip2country file

Stopping those pesky users

         

taiwanho

8:47 am on Sep 5, 2005 (gmt 0)

10+ Year Member



I want to ban certain IPs from gaining access to my site and realise I can do it via the .htaccess file like this:

<Limit GET>
order allow,deny
deny from 196.201.65
allow from all
</Limit>

to block 196.201.65.0 to 196.201.65.255

If I want to be more specific though, and block every user from, say, the Ivory Coast I guess I can either input every IP associated with the Ivory Coast or use a php check using ip2country.

Either way if I have this file it would help. I have Googled it but cannot find one in csv format. Does anyone have it or know where I can get it?

And does what I say above make sense? These guys are driving me nuts and its time to act!

adb64

10:00 am on Sep 5, 2005 (gmt 0)

10+ Year Member



A free IP 2 country database in CSV format can be downloaded from [ip-to-country.webhosting.info...]

Arjan

taiwanho

6:24 am on Sep 6, 2005 (gmt 0)

10+ Year Member



Thanks Arjan.

I can't find either of the IPs that I want to ban, yet it says the list was updated on August 15th. Does this mean it's going to be impossible to keep up with the scammers anyway?