News for hackers. Stuff that matters.
Re:Adblock via /etc/hosts by baptistem on Friday February 12, 2016 @03:06AM (#11085878)
I'm running this for years.

using 127.0.0.1, I have a httpd responding to every request by a 200. this avoid some anti-ad-block check. (such as "watch this ad before your video")

you can also configure your server to reply with a cat gif. but who would like to see a such Internet?

Re:Adblock via /etc/hosts by moviuro on Tuesday February 16, 2016 @10:39AM (#11110517)
Care to explain the software you use? I'm looking into it with nginx, can't find anything explaining "always return 204 whatever the URI" :(
Re:Adblock via /etc/hosts by Freak_NL on Friday February 12, 2016 @04:08AM (#11086059)
Cats for ads. Has a nice ring to it. I'm surprised no one built it yet.
Re:Adblock via /etc/hosts by oneeyedpigeon on Friday February 12, 2016 @06:07AM (#11086462)
They have. A little company called Google:

https://support.google.com/contributor/answer/6223848?hl=en&...

Re:Adblock via /etc/hosts by 35mm on Friday February 12, 2016 @04:13AM (#11086075)
Re:Adblock via /etc/hosts by TheCapn on Friday February 12, 2016 @08:06AM (#11086894)
I guess I could plug a silly little script I wrote for GreaseMonkey which runs on facebook.com. I hated looking at the "Trending" and "Recommended Pages" sidebar so I axed them out in favor of random imgur images of your favorite subreddit. By default you'll get `/r/aww` but you can flip it with a fixed little box in the top right to whatever floats your boat.

Full disclaimer: I'm a horrid at javascript, and the result below is mainly due to a lot of copy paste from various internet sources.

https://gist.github.com/GrahamBlanshard/d7211436088e0159164a