Raspberry PI as an ad blocking dns server

Non-Allegiance related. High probability of spam. Pruned regularly.
peet
Posts: 4972
Joined: Sun Jul 16, 2006 6:57 pm
Location: Holland

Post by peet »

I turned my Raspberry PI 2 (the 1GB model) into an ad blocking DNS server on my home network. Point all my clients DNS requests to the PI, it's a lot easier and quicker than modifying the hosts file on multiple devices. I found it fun to toy with the PI.

Installation of the script was very easy but it does require some geek messing with settings on the router and the clients.

It works, but it's slow. It takes significantly longer to load "polluted" webpages full with trackers and ads since each request is filtered through a 1000+ line blacklist. CPU load of the PI is often at 100% when "filtering". Previously I used Adblock EDGE, which was faster. A hosts file on my pc is faster too.

If you are on a "metered" ISP it might be useful, it can save a few mb's.

http://lifehacker.com/turn-a-raspberry-pi-...e-co-1686093533
Last edited by peet on Sat May 16, 2015 2:24 pm, edited 1 time in total.
Image
KGJV
Posts: 1474
Joined: Tue Jul 01, 2003 7:00 am
Location: Transilvania

Post by KGJV »

I don't understand people using adblocker and similar tools.

Instead of avoiding crappy sites and sending them a clear message: fix your site or you'll get no traffic. It just sends the opposite message.
And it hurts good sites that have well placed and few ads.

On top of that it's like 'stealing content' and watching for free something that is not really free.

It's just a tool for lazy and tasteless people.
Image
MrChaos
Posts: 8352
Joined: Tue Mar 21, 2006 8:00 am

Post by MrChaos »

Who pisses in your Cheerios today?
Ssssh
HJ_KG
Posts: 868
Joined: Tue Jul 01, 2003 7:00 am
Location: Plutocracy, USA Occupation: misanthropic anthropologist

Post by HJ_KG »

You know you can whitelist sites you like.
'bad' sites don't get ad revenue because there is no ad fetch, there is the punishment.
Do you sit through all the commercials during television? or are you a bad person and make a sandwitch or do something else during commercials?
If only there was some sort of device to make people look at something, oh yeah clockwork orange.
Mr C, I didn't get your joke, although I have cereal Ads blocked, so that may be it.
unindicted co-conspirator
peet
Posts: 4972
Joined: Sun Jul 16, 2006 6:57 pm
Location: Holland

Post by peet »

If you want to try this experiment yourself I suggest you delete or comment out "log-queries" in "/etc/dnsmasq.conf". I noticed the logfiles "messages" and "syslog" in "/var/log" filled up with debug information.

(Does that sound geek or not? I have much fun with the Raspberry PI, it's amazing what this little fellow can do).

Now that Windows 10 is free for the PI 2... I wonder... Freealleg on a PI? Would that even be remotely possible?
Image
Raven_42
Posts: 635
Joined: Sun Feb 18, 2007 3:22 pm
Location: Scotland

Post by Raven_42 »

Bill Hicks on Marketing

Code: Select all

[img]http://img97.imageshack.us/img97/4351/babelfish.png[/img]
MagisterXF94
Posts: 1935
Joined: Fri Aug 23, 2013 9:46 am
Location: Trieste, Italy

Post by MagisterXF94 »

Raven_42 wrote:QUOTE (Raven_42 @ May 18 2015, 03:08 PM) Bill Hicks on Marketing
$#@!ing brlliant! The man died too soon
QUOTE ^cashto@Elem (all): yeah, i imagine if you're rusty, you could build op short for no reason, build a naked ref, then go two techpaths even though your mining is by all objective standards $#@!ed[/quote]
Image
Djole88
Posts: 438
Joined: Wed Jul 10, 2013 11:10 am
Location: Србија
Contact:

Post by Djole88 »

Raven_42 wrote:QUOTE (Raven_42 @ May 18 2015, 03:08 PM) Bill Hicks on Marketing
advice too important to be quoted only once
KGJV
Posts: 1474
Joined: Tue Jul 01, 2003 7:00 am
Location: Transilvania

Post by KGJV »

HJ_KG wrote:QUOTE (HJ_KG @ May 17 2015, 07:31 PM) You know you can whitelist sites you like.
'bad' sites don't get ad revenue because there is no ad fetch, there is the punishment.
Do you sit through all the commercials during television? or are you a bad person and make a sandwitch or do something else during commercials?
If only there was some sort of device to make people look at something, oh yeah clockwork orange.
Mr C, I didn't get your joke, although I have cereal Ads blocked, so that may be it.
how do you whitelist sites with a network dns adblocker ?

how many people using adblockers actually whitelist sites ?

I don't mind 10% adblocked visitors on big, low quality content web sites: it's just a way for smarter people to get content they barely care about anyway.

But when you try to build a good site with good content aimed at a smarter audience, you end up seeing 50%+ of your visitors using adblockers.

Adblockers are killing the few free high quality content web sites, well not exactly killing but forcing them to change their economic model: in the end you'll have to pay something directly because in the first place you installed an adblocker. That's fine if you're aware of this and want this for the future of the Internet. But if you don't want this then don't whine in 10 years when you'll have to pay for most of the good content...or end up only seeing "sponsored" content.

Most people using an Adblocker haven't actually thought about the consequence of their action, they just want the immediate benefit and think they're just one person among billions users so it doesn't matter. It does matter.

Read that for instance: http://www.destructoid.com/half-of-destruc...t--247904.phtml
Image
Broodwich
Posts: 5662
Joined: Fri Oct 19, 2007 3:48 am
Location: Raincity

Post by Broodwich »

So its our fault ads are malware laden garbage?
QUOTE Drizzo: ha ha good old chap
Drizzo: i am a brit
Drizzo: tut tut
Drizzo: wankarrrrrr
Drizzo: i only have sex whilst in the missionary position[/quote] Fas est et ab hoste doceri - Ovid
Post Reply