Banner add in Squid

General discussion about Linux, Linux distribution, using Linux etc.
asaddotcom
Company Havaldaar Major
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
Location: Lahore, PK
Contact:

Banner add in Squid

Post by asaddotcom »

Assalam_O_Alaikum!

Dear Brother Master of Linux

I want to put bannaer add in squid which is show on Top of the Hotmail Inbox. I think you understand what i am trying to say...

mai chahta hon kay mien apni firm ka aik flash banner bna ker squid mien enter ker don jo kay nazer aye hotmail kay inbox mien jaha per hotmail waly apna banner add day rahy hain... mery network kay tammam user jabh bhe apna hotmail inbox open kerien tu orignal banner ki bijaye mera add banner show how....

is it possible ???

anyone tell me the mathod ?

or tell me another way to put banner there..

Allah Hafiz

posted by_ PhadyBaaz
Thanking You...

ครค๔
www.apnicollection.com | www.wikisoft.pk
auspicious
Naik
Posts: 56
Joined: Wed Apr 06, 2005 12:45 am
Location: Islamabad

Post by auspicious »

never heard any option in squid relevent to your question . i would be surprised if it can be achieved through squid.
To mess up a Linux box, you need to work at it; to mess up your Windows box, you just need to work on it, writes Scott Granneman.

Digital Thinker
zaeemarshad
Lieutenant Colonel
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Location: Islamabad
Contact:

Post by zaeemarshad »

It is possible. Squid uses redirectors which can filter ads and any other thing you want. Take a look at adzapper. Search for 'squid + ad zapping' on google and you will find many good answers.

In my office, we block ads and replace them with a white page. On most of the sites, this doesn't look ugly. It does though on a few sites. In your case, you will have to design an ad with the same dimensions and figure out the filename as well.

Regards
Zaeem
compucated
Naik
Posts: 75
Joined: Mon Oct 13, 2003 5:06 am
Location: Karachi, Pakistan
Contact:

Post by compucated »

Code: Select all

acl adsites dstdomain rad.msn.com
http_access deny adsites
deny_info http://www.yoursite.com/banner.html adsites
asaddotcom
Company Havaldaar Major
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
Location: Lahore, PK
Contact:

Post by asaddotcom »

compucated wrote:

Code: Select all

acl adsites dstdomain rad.msn.com
http_access deny adsites
deny_info http://www.yoursite.com/banner.html adsites
Dear compucated
Sallam brother

thank you very much for this help... this acl policy is working fine...
Now please tell me also how to make acl policy with yahoo inbox and how to block all web site banners and replace with my banner.

waiting to hear from you....

Allah Hafiz
Thanking You...

ครค๔
www.apnicollection.com | www.wikisoft.pk
asaddotcom
Company Havaldaar Major
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
Location: Lahore, PK
Contact:

Post by asaddotcom »

auspicious wrote:never heard any option in squid relevent to your question . i would be surprised if it can be achieved through squid.

compucated wrote:
Code:
acl adsites dstdomain rad.msn.com
http_access deny adsites
deny_info http://www.yoursite.com/banner.html adsites
Thanking You...

ครค๔
www.apnicollection.com | www.wikisoft.pk
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear asaddotcom,
Salam,

FYI, http://freshmeat.net/projects/squidwall/

Best Regards.
Farrukh Ahmed
asaddotcom
Company Havaldaar Major
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
Location: Lahore, PK
Contact:

Re:

Post by asaddotcom »

LinuxFreaK wrote:Dear asaddotcom,
Salam,

FYI, http://freshmeat.net/projects/squidwall/

Best Regards.
Dear Farrukh bro Sallam!
I didn't get any kinda of help about Squid Banners replacement from that site.. Please you send me acl code such as compucated[/b] post me.

waiting to hear from you...

Allah Hafiz
Thanking You...

ครค๔
www.apnicollection.com | www.wikisoft.pk
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear asaddotcom,
Salam,

As i read your first post you need to add your custom banner in squid. Which means that every user who is going though your proxy he/she will see your banner !!

and the configuration given by compucated is to block banners !!

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Farrukh Ahmed
asaddotcom
Company Havaldaar Major
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
Location: Lahore, PK
Contact:

Re:

Post by asaddotcom »

LinuxFreaK wrote:Dear asaddotcom,
Salam,

FYI,

http://www.privoxy.org/
http://adzapper.sourceforge.net/
http://phroggy.com/bannerfilter/

Best Regards.
I am able to replace my banner with the help of this code:

Code: Select all

[color=green]acl adsites dstdomain rad.msn.com 
http_access deny adsites 
deny_info http://www.yoursite.com/banner.html adsites[/color]
now I want to replace yahoo banner... I just need acl code.... I dont wana install any bulk software to my Linux machine... So please just tell me simple code. in msn the banner site is: rad.msn.com please tell me yahoo site ? it should be rad.yahoo.com ??????????

waiting your answer !

Allah Hafiz
Thanking You...

ครค๔
www.apnicollection.com | www.wikisoft.pk
asaddotcom
Company Havaldaar Major
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
Location: Lahore, PK
Contact:

Post by asaddotcom »

compucated wrote:

Code: Select all

acl adsites dstdomain rad.msn.com
http_access deny adsites
deny_info http://www.yoursite.com/banner.html adsites

Dear compucated Sallam

Please tell me the same code for yahoo banner replacement...

This code was?

Code: Select all

acl adsites dstdomain rad.yahoo.com
http_access deny adsites
deny_info http://www.yoursite.com/banner.html adsites
????????

please compucated help me.
Thanking You...

ครค๔
www.apnicollection.com | www.wikisoft.pk
zaeemarshad
Lieutenant Colonel
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Location: Islamabad
Contact:

Post by zaeemarshad »

asaddotcom,

You keep on asking for spoonfeeding. Adzapper as firstly me and then LF pointed out is a pretty neat tool for adzapping. No, its not bulk software but an add-on module (if you prefer it this way) for squid. Please RTFM!!

Regards
Zaeem
compucated
Naik
Posts: 75
Joined: Mon Oct 13, 2003 5:06 am
Location: Karachi, Pakistan
Contact:

Post by compucated »

well, actually you need some thrid party redirector in case if you are dealing with bulk list of domains and urls.
Personally I like SquidGuard http://www.squidguard.org/ as a redirector.

Anyway if you want to deal with few sites and not with stressy environment, its okey to do that with squid ACL's.

The thing I should like to say is you should try to understand the ACL behaviour.

And regarding Yahoo! ads you cann't deal with Yahoo! ads completely because Yahoo! doesn't call ads with specific urls or domains, they vary with ads servers and also use their own internal scripts to call ads.

Atlast I am posting my very own ads list with which you are able to replace 90% of banner ads with your own.

i. Download this file http://www.communitypk.com/linux/adslist.txt and save it to /etc/squid/.
ii. declare this code in squid.conf

Code: Select all

acl adsites dstdomain "/etc/squid/adslist.txt"
http_access deny adsites 
deny_info http://www.yoursite.com/banner.html adsites
iii. replace http://www.yoursite.com/banner.html with your banner page or file.

I hope this will help you.
Regards
Hamid Ashraf
compucated(at)msn(dot)com
asaddotcom
Company Havaldaar Major
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
Location: Lahore, PK
Contact:

Post by asaddotcom »

compucated wrote:well, actually you need some thrid party redirector in case if you are dealing with bulk list of domains and urls.
Personally I like SquidGuard http://www.squidguard.org/ as a redirector.

Anyway if you want to deal with few sites and not with stressy environment, its okey to do that with squid ACL's.

The thing I should like to say is you should try to understand the ACL behaviour.

And regarding Yahoo! ads you cann't deal with Yahoo! ads completely because Yahoo! doesn't call ads with specific urls or domains, they vary with ads servers and also use their own internal scripts to call ads.

Atlast I am posting my very own ads list with which you are able to replace 90% of banner ads with your own.

i. Download this file http://www.communitypk.com/linux/adslist.txt and save it to /etc/squid/.
ii. declare this code in squid.conf

Code: Select all

acl adsites dstdomain "/etc/squid/adslist.txt"
http_access deny adsites 
deny_info http://www.yoursite.com/banner.html adsites
iii. replace http://www.yoursite.com/banner.html with your banner page or file.

Sallam compucated

thankx for your help and thank for your acl code.
which sites are mention to that list (adslist.txt) these are not comon and my network users are not open these sites anyway thank for your help.

I was did experiment yesterday by my own self and get succsess to replace yahoo banner with my own.

So juz close this topic and chill
cheerz

Allah Hafiz
Thanking You...

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