RE: [squid-users] Re: Help, Squid ACL regex_url BYPASSS

This is a discussion on RE: [squid-users] Re: Help, Squid ACL regex_url BYPASSS within the Squid Users forums, part of the Web Server and Related Forums category; I use a pattern of \.bz2(\?.*)?$ Which matches '.bz2' at the end of a URL or '.bz2?' followed by = anything. ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2004
Mike Mitchell
 
Posts: n/a
Default RE: [squid-users] Re: Help, Squid ACL regex_url BYPASSS

I use a pattern of
\.bz2(\?.*)?$
Which matches '.bz2' at the end of a URL or '.bz2?' followed by =
anything.
The un-escaped '?' matches 0 or 1 occurrence of the pattern in =
parenthesis, which in this case is a question-mark followed by zero or =
more characters.

Mike Mitchell
-----Original Message-----
From: Herman (ISTD) [mailto:herman_ang@toyota.co.id]=20
Sent: Friday, April 16, 2004 11:07 PM
To: Adam Aube; squid-users@squid-cache.org
Subject: RE: [squid-users] Re: Help, Squid ACL regex_url BYPASSS

Thank you all,
At last, I just use \.bz2 entry, since the user may just put ?? or ???
behind the URL.

Regards,

herman

> -----Original Message-----
> From: Adam Aube [mailto:aaube01@baker.edu]
> Sent: Friday, April 16, 2004 7:44 PM
> To: squid-users@squid-cache.org
> Subject: [squid-users] Re: Help, Squid ACL regex_url BYPASSS
>=20
> Herman (ISTD) wrote:
>=20
> > Currently, I am preventing my users for downloading some files e.g

file
> > with .bz2 extention.

>=20
> > In squid.conf I define as following :
> > acl BadUrl url_regex -i

"/usr/local/squid/etc/data/BadUrlFile"
>=20
> > Add I add this entry to /usr/local/squid/etc/data/BadUrlFile :
> > \.bz2$

>=20
> > But some of the users did some trick by adding ? or ?/ in the URL

>=20
> > And they successful to bypass my ACL and download the files they

wanted.
>=20
> > I have try to add "\.bz2?$" and "\.bz2?/$" in to
> > /usr/local/squid/etc/data/BadUrlFile file. But it does not work.

>=20
> Like with the '.', you need to escape the '?' and '/' with a '\'.
>=20
> Adam


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:43 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0