Banner add in Squid

General discussion about Linux, Linux distribution, using Linux etc.
cyph3r
Lance Naik
Posts: 46
Joined: Tue Jan 22, 2008 1:27 am

Post by cyph3r »

these codes are not working in Squid 2.6 :oops:
Regards,
Mehmood Ahmed |cyph3r|
(+92)345-2835810
E-mail:cyph3r.07@hotmail.com
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

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"?
cyph3r
Lance Naik
Posts: 46
Joined: Tue Jan 22, 2008 1:27 am

Post 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
Regards,
Mehmood Ahmed |cyph3r|
(+92)345-2835810
E-mail:cyph3r.07@hotmail.com
asaddotcom
Company Havaldaar Major
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
Location: Lahore, PK
Contact:

Post 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..
Thanking You...

ครค๔
www.apnicollection.com | www.wikisoft.pk
Post Reply