Re: [squid-users] Questions about Regular Expressions.

From: Henrik Nordstrom <[email protected]>
Date: Thu, 11 Nov 2004 23:32:31 +0100 (CET)

On Thu, 11 Nov 2004 listas@netvision.com.py wrote:

> Hi all.
>
> I have blocked some extensions \.zip$ \.exe$ etc, now, some clientes need to
> download \.exes from symantec.com and microsoft.com, now, I have this.
>
> ^http:\/\/download\.microsoft\.com\/*
> ^http:\/\/liveupdate.symantecliveupdate.com\/*
> ^http:\/\/definitions.symantec.com/*

All of these really ought to be done using a dstdomain acl..

url_regex should only be used if none of the other acl types are suitable
for what you want to match. Only when you have excluded all of the other
acl types as unsuitable should you look into how to match the request
using url_regex.

> > But they don't match, this is an example.
>
> http://download.microsoft.com/download/f/6/b/f6b096f9-f8ca-40bf-9cc4-ef4284bfb713/SETUP9X.exe

What does your http_access rules look like, and which acl name is the
above in that list?

Regards
Henrik
Received on Thu Nov 11 2004 - 15:32:38 MST

This archive was generated by hypermail pre-2.1.9 : Wed Dec 01 2004 - 12:00:01 MST