Page 1 of 2

Banner add in Squid

Posted: Fri Jul 22, 2005 10:02 pm
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

Posted: Fri Jul 22, 2005 11:34 pm
by auspicious
never heard any option in squid relevent to your question . i would be surprised if it can be achieved through squid.

Posted: Sat Jul 23, 2005 9:41 am
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

Posted: Sat Jul 23, 2005 5:13 pm
by compucated

Code: Select all

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

Posted: Sat Jul 23, 2005 8:59 pm
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

Posted: Sat Jul 23, 2005 9:08 pm
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

Re:

Posted: Sun Jul 24, 2005 12:54 am
by LinuxFreaK
Dear asaddotcom,
Salam,

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

Best Regards.

Re:

Posted: Sun Jul 24, 2005 3:55 pm
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

Re:

Posted: Mon Jul 25, 2005 12:15 am
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.

Re:

Posted: Mon Jul 25, 2005 12:20 am
by LinuxFreaK

Re:

Posted: Mon Jul 25, 2005 7:33 pm
by asaddotcom


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

Posted: Mon Jul 25, 2005 7:38 pm
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.

Posted: Tue Jul 26, 2005 12:13 pm
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

Posted: Tue Jul 26, 2005 8:55 pm
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

Posted: Tue Jul 26, 2005 10:07 pm
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