Forum Moderators: DixonJones

Message Too Old, No Replies

Blocking an IP address found in the logs

how do I block

         

laneygirl

8:30 pm on Jul 22, 2005 (gmt 0)



Hi,
I need to block an isp address. How is this accomplished? This domain seems to be the biggest visitor to my website. Is it a bot or a host server? Can anyone help me? I am so lost.
Any help will be greatly appreciated.
laneygirl

[edited by: Receptional at 9:32 am (utc) on July 23, 2005]
[edit reason] No specifics please [/edit]

TreoRenegade

9:09 pm on Jul 25, 2005 (gmt 0)

10+ Year Member



from my .htaccess file

# turn on rewrite engine
RewriteEngine on
#
# block these s.o.b's
RewriteCond %{REMOTE_HOST} .theplanet.com$
RewriteRule .* - [F,L]

Span

10:00 pm on Jul 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forums laneygirl.

personally I would never block an entire host or internet provider. There simply is no need to. Better to only block IP numbers or user agents or a combination of the two. Not everyone at the planet.com is a guestbook spammer or email address harvester. Try to find out who is doing what and only ban malicious IPs or UAs.

In case you do want to use TreoRenegade's code (only for Apache), I changed it a bit (escaped the dots, redundant L flag):


RewriteEngine on
RewriteCond %{REMOTE_HOST} \.theplanet\.com$
RewriteRule .* - [F]