Banner add in Squid
time to roll up your sleeves, write something that works, and share with the community.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Sorry Lamda
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
Code: Select all
acl add url_regex "/home/scripts/adsites.txt"
http_access deny add
deny_info http://192.168.139.1 add
192.168.139.1 is mai local web server,
i have added all sites in /home/scripts/adsites.txt
like rad.msn.com
-
- Company Havaldaar Major
- Posts: 195
- Joined: Fri Feb 04, 2005 7:21 pm
- Location: Lahore, PK
- Contact:
cyph3r wrote:Sorry Lamdai have used these codes in squid 2.6 stable21, centos 5.3Code: Select all
acl add url_regex "/home/scripts/adsites.txt" http_access deny add deny_info http://192.168.139.1 add
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 .
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
Note:-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
You can also make flash banner and upload it into googlepages.com and paste this banner link, "acl" deny_info .
Best Regards..