Banner add in Squid

General discussion about Linux, Linux distribution, using Linux etc.

Postby cyph3r » Wed Sep 23, 2009 11:27 am

these codes are not working in Squid 2.6 :oops:
Regards,
Mehmood Ahmed |cyph3r|
(+92)345-2835810
E-mail:cyph3r.07@hotmail.com
cyph3r
Lance Naik
 
Posts: 46
Joined: Tue Jan 22, 2008 1:27 am
WLM: cyph3r.07@hotmail.com

Postby lambda » Wed Sep 23, 2009 9:36 pm

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby cyph3r » Thu Sep 24, 2009 5:48 pm

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
cyph3r
Lance Naik
 
Posts: 46
Joined: Tue Jan 22, 2008 1:27 am
WLM: cyph3r.07@hotmail.com

Postby asaddotcom » Thu Oct 08, 2009 1:04 am

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
asaddotcom
Company Havaldaar Major
 
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
ICQ: 172131405
Website: http://www.apnicollection.com
WLM: asaddotcom@msn.com
Yahoo Messenger: asaddotcom2002@yahoo.com
AOL: AsadDotCom
Location: Lahore, PK


Return to “%s” General

Who is online

Users browsing this forum: No registered users and 2 guests

cron