Home OS Linux How to block an IP address with .htaccess ?

Recently I have discovered many registered users with strange login names. Well, as you expected that those users were created by Ad-robots sourced from few different locations. I checked stat page to see who is top visitors by IP address and researched where those traffic comes from. I hate hate hate this.

I concluded below IP addresses

My Black Lists

There are couple of way to block those IP addresses, but here we are using .htaccess due to it is easy and I am using hosting service so no firewall or no router access.


First of all, this method won't work if you are using Window based Web server. If you don't have .htaccess file on www directory of your web server, create one. And edit the file. Here is sample of .htaccess on our server.

order allow,deny
deny from
deny from
deny from
deny from
deny from
deny from 208.80.194.
allow from all


My Black Lists(continued)

Last Updated (Tuesday, 19 May 2009 17:21)

Smart Link
Content View Hits : 2281925
Highly recommended firewall vendor?
Google Translation
English Arabic Chinese (Simplified) Czech Dutch French German Italian Korean Portuguese Russian Spanish Filipino Vietnamese Thai Turkish
BGP routing issue?
World Route Servers
Who's Online
We have 70 guests online