Community discussions

MikroTik App
 
keter
just joined
Topic Author
Posts: 20
Joined: Thu May 26, 2011 9:18 pm

stealing ad spaces

Tue Jul 26, 2011 12:20 pm

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.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26943
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: stealing ad spaces

Tue Jul 26, 2011 12:50 pm

RouterOS can't do that.
 
firewallrule
Member Candidate
Member Candidate
Posts: 118
Joined: Tue Oct 13, 2009 9:23 pm

Re: stealing ad spaces

Tue Jul 26, 2011 4:13 pm

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.
 
bbj
just joined
Posts: 20
Joined: Mon May 22, 2006 7:25 pm

Re: stealing ad spaces

Tue Jul 26, 2011 4:28 pm

it would also be illegal in most countries..
 
keter
just joined
Topic Author
Posts: 20
Joined: Thu May 26, 2011 9:18 pm

Re: stealing ad spaces

Tue Jul 26, 2011 8:01 pm

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.
 
User avatar
aacable
Member
Member
Posts: 435
Joined: Wed Sep 17, 2008 11:58 am
Location: ISLAMIC Republic of PAKISTAN
Contact:

Re: stealing ad spaces

Wed Jul 27, 2011 10:04 am

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/
You do not have the required permissions to view the files attached to this post.
 
richedav
Member Candidate
Member Candidate
Posts: 114
Joined: Mon Dec 13, 2010 12:13 am

Re: stealing ad spaces

Thu Jul 28, 2011 12:06 am

Great write up - thats one ill be saving for future use
 
pacoss
newbie
Posts: 36
Joined: Wed Jul 20, 2011 5:21 pm

Re: stealing ad spaces

Thu Jul 28, 2011 4:47 am

+1 Clean solution. Thanks.
 
keter
just joined
Topic Author
Posts: 20
Joined: Thu May 26, 2011 9:18 pm

Re: stealing ad spaces

Thu Jul 28, 2011 7:57 am

Thanks that's a superb solution.
 
User avatar
aacable
Member
Member
Posts: 435
Joined: Wed Sep 17, 2008 11:58 am
Location: ISLAMIC Republic of PAKISTAN
Contact:

Re: stealing ad spaces

Thu Jul 28, 2011 11:12 am

Glad to help :)

How about giving karma to this post ;)
 
Muqatil
Trainer
Trainer
Posts: 573
Joined: Mon Mar 03, 2008 1:03 pm
Location: London - UK
Contact:

Re: stealing ad spaces

Thu Jul 28, 2011 1:13 pm

Very nice, i wonder if this is illegal or not..
It might be a nice way to add some profits
 
reinerotto
Long time Member
Long time Member
Posts: 524
Joined: Thu Dec 04, 2008 2:35 am

Re: stealing ad spaces

Tue Aug 02, 2011 9:47 pm

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 :-)
 
Muqatil
Trainer
Trainer
Posts: 573
Joined: Mon Mar 03, 2008 1:03 pm
Location: London - UK
Contact:

Re: stealing ad spaces

Wed Aug 03, 2011 12:20 am

Post your mail so we can meet with the price :)
 
reinerotto
Long time Member
Long time Member
Posts: 524
Joined: Thu Dec 04, 2008 2:35 am

Re: stealing ad spaces

Wed Aug 03, 2011 9:07 am

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