Page 2 of 2

Posted: Wed Sep 23, 2009 11:27 am
by cyph3r
these codes are not working in Squid 2.6 :oops:

Posted: Wed Sep 23, 2009 9:36 pm
by lambda
time to roll up your sleeves, write something that works, and share with the community.

Posted: Thu Sep 24, 2009 5:48 pm
by cyph3r
Sorry Lamda

Code: Select all

acl add url_regex "/home/scripts/adsites.txt"
http_access deny add
deny_info http://192.168.139.1 add


i have used these codes in squid 2.6 stable21, centos 5.3

192.168.139.1 is mai local web server,
i have added all sites in /home/scripts/adsites.txt

like rad.msn.com

Posted: Thu Oct 08, 2009 1:04 am
by asaddotcom
cyph3r wrote:Sorry Lamda

Code: Select all

acl add url_regex "/home/scripts/adsites.txt"
http_access deny add
deny_info http://192.168.139.1 add


i have used these codes in squid 2.6 stable21, centos 5.3

192.168.139.1 is mai local web server,
i have added all sites in /home/scripts/adsites.txt

like rad.msn.com



wow I'm Surprised to see my 4 year older post, and that time i had done by my own :wink: .

as Lamda says, share your experience.. so now I'm posting the exact acl which I'm gonna using from last 5 years..

Code: Select all

acl adsites dstdomain "/etc/squid/adlist.txt"
http_access deny adsites
deny_info http://www.geocities.com/asaddotcom2002/Final-2.html adsites


paste this on your /etc/squid/adlist.txt

rad.msn.com
rad.live.com
m1.2mdn.net
m1.2mdn.net/518758
ads.yimg.com/us.yimg.com/a/ya/
ads.yimg.com/us.yimg.com/a/ya/yahoo_messenger
ads.yimg.com/us.yimg.com/a/ya/yahoo_messenger/20060224_67646_17_234x60_halfbanner_pctomobile.swf
adguru.guruji.com/bannerImages/
us.yimg.com/a/ya/yahoo_messenger
cdn.fastclick.net/fastclick.net
content.yieldmanager.edgesuite.net
content.yieldmanager
vid1.ads.yahoo.com/
mi.adinterax.com/
tr.adinterax.com/
edgesuite.net
apniisp.com/ads
screensavers.com
us.bc.yahoo
in.yimg.com
34366665312b949c33316dd95c3de6a9.gif
http://a.ads1.msn.com/ads/1/0000000001_ ... 171860.jpg
http://a.ads1.msn.com/ads/1/0000000001_ ... 301317.jpg


Note:-

You can also make flash banner and upload it into googlepages.com and paste this banner link, "acl" deny_info .

Best Regards..