Re: [squid-users] urlpath_regex doesn't match

2006-03-16 Thread Marco Berizzi
Christoph Haas wrote: Just one hint: Squid is bad at checking the content of HTTP objects. Unless you use another proxy Is there anything better than squid? But whatever header field you check: you are always relying on the web server administrators classification of files. If you just want

Re: [squid-users] urlpath_regex doesn't match

2006-03-16 Thread Henrik Nordstrom
tor 2006-03-16 klockan 17:54 +0100 skrev Christoph Haas: > Just one hint: Squid is bad at checking the content of HTTP objects. Unless > you use another proxy that can handle content better you will need to rely > on what the web server is sending you. The Content-Diposition header might > work

Re: [squid-users] urlpath_regex doesn't match

2006-03-16 Thread Mark Elsen
> > You didn't say what you want to accomplish. But content types and Squid are > a typical issue of "YMMV". :) > Yes, but what SQUID does on that field, isn't anything that bad, as for instance Windows os-es and their attitude on that matter : 'Throw all security problems, to heaven and trust co

Re: [squid-users] urlpath_regex doesn't match

2006-03-16 Thread Henrik Nordstrom
tor 2006-03-16 klockan 17:39 +0100 skrev Marco Berizzi: > Christoph Haas wrote: > and it works. The is a problem with the " character. There some web > server (windoze) that doesn't put that char in the filename field. So > I have modified the regex to \.wmv?$ but it doesn't match. > Hints? \.wm

Re: [squid-users] urlpath_regex doesn't match

2006-03-16 Thread Christoph Haas
On Thursday 16 March 2006 17:39, Marco Berizzi wrote: > Christoph Haas wrote: > >On Thursday 16 March 2006 14:50, Marco Berizzi wrote: > > > Christoph Haas wrote: > > > >So this doesn't match. Try http_reply_access with content type ACLs. > > > > > > What kind of acl should I implement? > > > >Sear

Re: [squid-users] urlpath_regex doesn't match

2006-03-16 Thread Marco Berizzi
Christoph Haas wrote: On Thursday 16 March 2006 14:50, Marco Berizzi wrote: > Christoph Haas wrote: > >On Thursday 16 March 2006 14:19, Marco Berizzi wrote: > > > I'm blocking download of .wmv files with acl urlpath_regex, > > > but, for example, this wmv isn't catched by this rule: > > > > > >

Re: [squid-users] urlpath_regex doesn't match

2006-03-16 Thread Christoph Haas
On Thursday 16 March 2006 14:50, Marco Berizzi wrote: > Christoph Haas wrote: > >On Thursday 16 March 2006 14:19, Marco Berizzi wrote: > > > I'm blocking download of .wmv files with acl urlpath_regex, > > > but, for example, this wmv isn't catched by this rule: > > > > > > http://www.gametrailers.c

Re: [squid-users] urlpath_regex doesn't match

2006-03-16 Thread Marco Berizzi
Christoph Haas wrote: On Thursday 16 March 2006 14:19, Marco Berizzi wrote: > I'm blocking download of .wmv files with acl urlpath_regex, > but, for example, this wmv isn't catched by this rule: > > http://www.gametrailers.com/download.php?id=7174&type=wmv&f= > > squid.conf: > acl trojans urlpat

Re: [squid-users] urlpath_regex doesn't match

2006-03-16 Thread Henrik Nordstrom
tor 2006-03-16 klockan 14:25 +0100 skrev Christoph Haas: > The URL path here is probably: /download.php? urlpath in Squid actually includes the query part. Everything after the hostname[:port] is included in urlpath as far as Squid is concerned.. > So this doesn't match. Try http_reply_access wi

Re: [squid-users] urlpath_regex doesn't match

2006-03-16 Thread Christoph Haas
On Thursday 16 March 2006 14:19, Marco Berizzi wrote: > I'm blocking download of .wmv files with acl urlpath_regex, > but, for example, this wmv isn't catched by this rule: > > http://www.gametrailers.com/download.php?id=7174&type=wmv&f= > > squid.conf: > acl trojans urlpath_regex \.wmv$ > http_acc

[squid-users] urlpath_regex doesn't match

2006-03-16 Thread Marco Berizzi
Hi. I'm blocking download of .wmv files with acl urlpath_regex, but, for example, this wmv isn't catched by this rule: http://www.gametrailers.com/download.php?id=7174&type=wmv&f= squid.conf: acl trojans urlpath_regex \.wmv$ http_access deny trojans Hints? TIA