Re: [squid-users] Re: need help port 80

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 13 Apr 2010 23:07:53 +0000

On Tue, 13 Apr 2010 21:54:40 +0200, Heinz Diehl <htd_at_fancy-poultry.org>
wrote:
> On 13.04.2010, david_at_lafourmi.de wrote:
>
>> but i dont understand
>> regexp .... pattern match on user agent
>
>> can you give me an example for dummies please ;)
>
> acl Nofox browser -i .*Firefox.*
> http_access deny Nofox

Ouch. very computing intensive.
I don't know why you people insist on sticking .* before and aft of the
pattern.
When that is processed in by Squid it becomes:
  .*.*Firefox.*.*

Just this will do to catch the browser tag:
  acl firefox browser Firefox/

Amos
Received on Tue Apr 13 2010 - 23:07:59 MDT

This archive was generated by hypermail 2.2.0 : Fri Apr 16 2010 - 12:00:05 MDT