[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] [RAQ3] Apache User-Agent blocking for all sites
- Subject: [cobalt-users] [RAQ3] Apache User-Agent blocking for all sites
- From: Greg Hewitt-Long <cobaltusers@xxxxxxxxxxxxxxxxxxx>
- Date: Mon Dec 9 08:51:03 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
I'm fed up with a number of bots and various user-agents slamming one of our servers, and I have a REAL problem with one particular bot using ANY of our resources at all, so I've taken the decision to block the access to ALL virtual sites at once - I figured that the best way to do this is either by altering the httpd.conf or access.conf - someone with a little more apache knowledge than me scan this and advise if this is the right/best way to ban access in access.conf:
SetEnvIfNoCase User-Agent "^EmailSiphon" bad_bot
SetEnvIfNoCase User-Agent "^EmailWolf" bad_bot
<Directory "/home/sites/*/">
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</Directory>
tia
Greg Hewitt-Long
--
http://www.webyourbusiness.com/
Providers of E-Commerce Software &
Web Design Consultancy and Services.
PH: (970) 266-0195 FAX: (970) 266-0158