Re: [squid-users] how to block files in squid

From: Denis Vlasenko <vda@dont-contact.us>
Date: Thu, 4 Aug 2005 13:43:07 +0300

On Thursday 04 August 2005 10:40, Nauman Yousuf wrote:
> acl FILE_MP3 urlpath_regex -i \.gz$ \.exe$ \.mp3$ \.tar.gz$ \.doc$
> http_access deny FILE_MP3
> i am using these two lines but seems its nor working b/c i download
> tar files n exe file after that
> what mistake i am doing

Probably you shouldn't put them in one line.
I list one regex per line:

acl ads_regex url_regex -i ^http://www.*adnet\.ru:*[0123456789]*/cgi-bin/iframe/vivru
acl ads_regex url_regex -i ^http://www.*business\.lbn\.ru:*[0123456789]*/cgi-bin/iframe/
acl ads_regex url_regex -i ^http://image\.linkexchange\.com:*[0123456789]*/[0123456789/]*/banner
acl ads_regex url_regex -i ^http://rotabanner\.kulichki\.net:*[0123456789]*/cgi-bin/iframe/
acl ads_regex url_regex -i ^http://bx\.metka\.ru:*[0123456789]*/.*\?
acl ads_regex url_regex -i ^http://aif\.yadro\.ru:*[0123456789]*/cgi-bin/show\?
acl ads_regex url_regex -i ^http://btxt\.abn\.com\.ua:*[0123456789]*/jsframe\?
acl ads_regex url_regex -i ^http://direct\.lbe\.ru:*[0123456789]*/cgi-bin/iframe/.*\?
...

--
vda
Received on Thu Aug 04 2005 - 04:43:22 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Sep 01 2005 - 12:00:01 MDT