Re: [squid-users] blocking \.wma? URLs

From: Denis Vlasenko <[email protected]>
Date: Tue, 19 Jul 2005 13:24:15 +0300

On Tuesday 19 July 2005 11:31, Kashif Ali Bukhari wrote:
> dar ray
>
> > I've also tried these ACLs:
> >
> > acl BAD_FILES2 urlpath_regex -i \.wma$
> > acl BAD_FILES2 urlpath_regex -i \.wma\?$
>
> please use
> acl BAD_FILES2 urlpath_regex -i \.wma$
> acl BAD_FILES2 urlpath_regex -i \.wma\?.*$
>
> it will block all urls like
> eg: http://webserver.com/file.wma?
> or http://webserver.com/file.wma

I use this:

acl ads_regex url_regex -i [./]banners*[./?]
acl ads_regex url_regex -i [./]bannerserver[./?]
acl ads_regex url_regex -i [./]bannerbank[./?]
acl ads_regex url_regex -i [./]bannerfarm[./?]
acl ads_regex url_regex -i \.linkexchange\.ru:*[0123456789]*/
acl ads_regex url_regex -i [./]adv[./?]
acl ads_regex url_regex -i /count.*\?
acl ads_regex url_regex -i /cnt\.cgi\?
acl ads_regex url_regex -i /ping.*\?
acl ads_regex url_regex -i /ad/adframe\.php\?

acl ads_regex url_regex -i [./]adserver
acl ads_regex url_regex -i /phpAdsNew.*/ad.*\.php\?
acl ads_regex url_regex -i /adsystem.*/ad.*\.php\?

acl ads_regex url_regex -i /adjs\.php\?
acl ads_regex url_regex -i /adlog\.php\?
acl ads_regex url_regex -i /ADSAdClient[0123456789]*\.dll\?
acl ads_regex url_regex -i ads/adstream_lx\.cgi/

acl ads_regex url_regex -i ^http://ar\.atwola\.com:*[0123456789]*/
acl ads_regex url_regex -i ^http://ads*[0123456789]*\.

acl ads_regex url_regex -i ^http://bs\.yandex\.ru:*[0123456789]*/count/
acl ads_regex url_regex -i ^http://c\.bigmir\.net:*[0123456789]*/\?
acl ads_regex url_regex -i ^http://images\.rambler\.ru:*[0123456789]*/upl/partners/.*gif
acl ads_regex url_regex -i ^http://images\.rambler\.ru:*[0123456789]*/upl/clients/.*gif
acl ads_regex url_regex -i ^http://u[0123456789\.]*\.spylog\.com:*[0123456789]*/cnt\?
acl ads_regex url_regex -i ^http://engine\.awaps\.net:*[0123456789]*/[0123456789/.]*gif.*
acl ads_regex url_regex -i ^http://bbn\.img\.com\.ua:*[0123456789]*/[0123456789/.]*\.gif
acl ads_regex url_regex -i ^http://bbn\.img\.com\.ua:*[0123456789]*/[0123456789/.]*\.jpe*g
acl ads_regex url_regex -i ^http://bbn\.img\.com\.ua:*[0123456789]*/[0123456789/.]*\.swf
acl ads_regex url_regex -i ^http://web\.icq\.com:*[0123456789]*/client/ate/ad-handler/
acl ads_regex url_regex -i ^http://.*\.abn\.com\.ua:*[0123456789]*/iframe\?
acl ads_regex url_regex -i ^http://62.118.249.36:*[0123456789]*/images/[0123456789/]*\.gif
acl ads_regex url_regex -i ^http://www\.ad\.tomshardware\.com:*[0123456789]*/cgi-bin/bd\.m\?
acl ads_regex url_regex -i ^http://pagead2\.googlesyndication\.com:*[0123456789]*/pagead/ads\?
acl ads_regex url_regex -i ^http://www\.yadro\.ru:*[0123456789]*/cgi-bin/show\?
acl ads_regex url_regex -i ^http://counter\.yadro\.ru:*[0123456789]*/hit
acl ads_regex url_regex -i ^http://servedby\.advertising\.com:*[0123456789]*/site
acl ads_regex url_regex -i ^http://tbs\.susanin\.com:*[0123456789]*/cgi-bin/tbs/banneri\.cgi\?
acl ads_regex url_regex -i ^http://pbnet\.ru/show:*[0123456789]*/show\.pl\?
acl ads_regex url_regex -i ^http://cdn\.valueclick\.com:*[0123456789]*/ad\.s/
acl ads_regex url_regex -i ^http://us\.a1\.yimg\.com:*[0123456789]*/us\.yimg\.com/a/in/information_usa/.*\.gif
acl ads_regex url_regex -i ^http://icqrus\.ru:*[0123456789]*/cgi/icq2k/all_bn\.cgi\?
acl ads_regex url_regex -i ^http://cnt\.one\.ru:*[0123456789]*/cgi-bin/cnt\.cgi\?
acl ads_regex url_regex -i ^http://www2.aport.ru:*[0123456789]*/scripts/popup/popup.dll
acl ads_regex url_regex -i ^http://topshop-counter\.rambler\.ru:*[0123456789]*/top100\.cnt\?
...
http_access deny ads_regex
http_access allow intranet
http_access allow localhost
http_access deny all

--
vda
Received on Tue Jul 19 2005 - 04:24:50 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:02 MDT