Re: [squid-users] Block user-agent of the http-request header

From: Christoph Haas <email@dont-contact.us>
Date: Mon, 5 Dec 2005 11:30:05 +0100

On Monday 05 December 2005 11:20, Kashif Ali Bukhari wrote:
> acl aclname browser "/path/to/browser.txt"
> http_access aclname
> and add all lines in browser.txt
> #browser.txt
> Morpheus
> KaZaa
> KaZaaClient
> Gnutella
> Gnucleus
> e2dk
> Gator
> Bearshare
> BitTorrent
> "torrent
> P2P-Agent
> Napster
> KaZaA

1. I hate TOFU. Please http://learn.to/quote
2. I am not the original poster. No need to reply to me.
3. Your example would need to be "http_access deny aclname".
4. Since the "browser" ACL is a regular expression "KaZaa" would
   also match "KaZaaClient".
5. Throwing in an example doesn't teach anything. If the original poster
   has other http_access lines in the config the order matters. I prefer
   pointing people to the right pieces of the documentation. Otherwise you
   risk getting a followup like "still doesn't work - fix it!".

Sorry about the nitpicking.

 Christoph

-- 
~
~
".signature" [Modified] 2 lines --100%--                2,41         All
Received on Mon Dec 05 2005 - 03:30:10 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 31 2005 - 12:00:02 MST