LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > Musings on technology, philosophy, and life in the corporate world
User Name
Password

Notices


Hi. I'm jon.404, a Unix/Linux/Database/Openstack/Kubernetes Administrator, AWS/GCP/Azure Engineer, mathematics enthusiast, and amateur philosopher. This is where I rant about that which upsets me, laugh about that which amuses me, and jabber about that which holds my interest most: *nix.
Rate this Entry

Die, Ad, die?

Posted 03-15-2013 at 08:21 PM by rocket357

I hate ads. I took it upon myself to start filtering ads via unbound recently, but then my wife (an avid Google Chrome user) started complaining about the incredibly painful eyesore that is Chrome's way of saying "jeez...this piece of the page rejected my connection attempt".

There must be an easier way, right?

Yup. There is.

On an old sparc box, I put nginx. I configured it to serve 404.gif (a transparent gif) on all 404 errors. Oh, did I mention the only file in it's root is 404.gif, so unless you specifically request the transparent gif, you get the transparent gif? I mean, unless you specifically request it, in which case you get...the transparent gif...

Yup. My firewall redirects dns traffic to my unbound instance, and unbound returns the ip of my nginx sparc machine for known ad servers.

The end result? No ads, no Chrome abuse, and less bandwidth across my internet connection.

Eat that, advertisers.
Posted in Uncategorized
Views 8215 Comments 2
« Prev     Main     Next »
Total Comments 2

Comments

  1. Old Comment
    Never was a Duke fan.
    Posted 03-15-2013 at 08:59 PM by VRV VRV is offline
  2. Old Comment
    Duke?
    Posted 03-15-2013 at 09:53 PM by rocket357 rocket357 is offline
 

  



All times are GMT -5. The time now is 11:26 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration