Page 1 of 1

stealing ad spaces

Posted: Tue Jul 26, 2011 12:20 pm
by keter
Does any one have an implementation of a way to filter out adverts like Google ads and replace them with your on on your network.
Thanks guyz.

Re: stealing ad spaces

Posted: Tue Jul 26, 2011 12:50 pm
by normis
RouterOS can't do that.

Re: stealing ad spaces

Posted: Tue Jul 26, 2011 4:13 pm
by firewallrule
RouterOS can't do that.
This Advert stuff is very important.
If your technical crew can work out a way this can be possible in mikrotik it will be of great edge to other solution.

Re: stealing ad spaces

Posted: Tue Jul 26, 2011 4:28 pm
by bbj
it would also be illegal in most countries..

Re: stealing ad spaces

Posted: Tue Jul 26, 2011 8:01 pm
by keter
RouterOS can't do that.
This Advert stuff is very important.
If your technical crew can work out a way this can be possible in mikrotik it will be of great edge to other solution.

I think it shouldn't be illegal as long as you do it in your network {jurisdiction} I think several big isps in my country are doing it.

Re: stealing ad spaces

Posted: Wed Jul 27, 2011 10:04 am
by aacable
Does any one have an implementation of a way to filter out adverts like Google ads and replace them with your on on your network.
Thanks guyz.
I will not recommend you to filter websites on Mikrotik, its simply not made for this purpose, Proxy server can work more smartly
for this kind of filtering. Blocking ads and redirecting it to local advertisement page can be done in many alternate ways.

Setup any proxy server like SQUID , then either in MT web proxy, use parent proxy option, and point it to your squid server
OR just redirect HTTP traffic to SQUID box :)_

On SQUID box, you can setup following rules to block ads. I presume that you have working Squid in place.
just open /etc/squid/squid.conf and these lines before other ACL’s.
acl adsites dstdomain url_regex "/etc/squid/adslist.txt"
http_access deny adsites
deny_info http://192.168.0.1/myadvertisement.html adsites
[192.168.0.1 is local web server hosted on same machine]

This will tell squid to look in /etc/squid/adslist.txt and deny those website listed in adslist.txt,
then “deny_info” will redirect those websites to your local hosted web page, possibly advertisement page ;)

Now create a file /etc/squid/adslist.txt and paste all these entries in this file. [just few examples]
.2mdn.net
.sapo.pt
.econtent.ebuddy.com/banners_new
.adbasket.net
.ak1.abmr.net
.edgesuite.net
.ad.yieldmanager.com/imp?
ad.yieldmanager.com/imp
.ad.yieldmanager.com/imp
The result can be seen in following screenshot. Default web site ad is replaced by My company Advertisement.
ads-blocking-by-squid-or-isa.png

Read the following articles for more information on how can you effectively block ads using SQUID.

http://aacable.wordpress.com/2011/06/01 ... block-ads/
http://aacable.wordpress.com/2011/06/06 ... ficiently/

Re: stealing ad spaces

Posted: Thu Jul 28, 2011 12:06 am
by richedav
Great write up - thats one ill be saving for future use

Re: stealing ad spaces

Posted: Thu Jul 28, 2011 4:47 am
by pacoss
+1 Clean solution. Thanks.

Re: stealing ad spaces

Posted: Thu Jul 28, 2011 7:57 am
by keter
Thanks that's a superb solution.

Re: stealing ad spaces

Posted: Thu Jul 28, 2011 11:12 am
by aacable
Glad to help :)

How about giving karma to this post ;)

Re: stealing ad spaces

Posted: Thu Jul 28, 2011 1:13 pm
by Muqatil
Very nice, i wonder if this is illegal or not..
It might be a nice way to add some profits

Re: stealing ad spaces

Posted: Tue Aug 02, 2011 9:47 pm
by reinerotto
The solution using squid is a good and simple one.
Howeve, it has its limitations.
Being an old German engineer, destined for perfection, I was developing for quite some time a far more flexible and efficient method, which now is ready for the market.
Have a look at the possibilities:

Shot 1 shows an example of a banner added.
Shot 2 shows a layer-Ad added.
Shot 3 shows 2 flash ads on the google search page (standard and a peel-off flash).

Image
Image
Image


Comments welcome !
And possible coorperation with non-Europeans :-)

Re: stealing ad spaces

Posted: Wed Aug 03, 2011 12:20 am
by Muqatil
Post your mail so we can meet with the price :)

Re: stealing ad spaces

Posted: Wed Aug 03, 2011 9:07 am
by reinerotto
Post your mail so we can meet with the price :)

You can mail me using my public adrs to avoid too much spam:
augustus_meyer@yahoo.de

screenshots were from a short demo video, which I prepared already sometime ago, when it was still a bit less than perfect :-)
Anyway: Link to video:https://rapidshare.com/files/1508464671/demo.avi