Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Adblock with Easylist and /etc/hosts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
regomodo
Guru
Guru


Joined: 25 Mar 2008
Posts: 445

PostPosted: Sun May 31, 2009 8:26 pm    Post subject: Adblock with Easylist and /etc/hosts Reply with quote

I am currently using http://www.mvps.org/winhelp2002/hosts.txt in my /etc/hosts file to adblock.

Is it possible to incorporate the Easylist?
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Mon Jun 01, 2009 12:25 am    Post subject: Reply with quote

Your easy list is not limited to hosts, so to be short no.

There are a lots and lots of entries like:
youtube.com##div[id$="-promo"]
if you extract the host out of that, with /etc/hosts you block complete youtube.
It's impossible to block on a host level when your blocking depends on the html contents.

similar for
yahoo.com##div[id="ad"]
msn.com#div(id^=ad-front)
itnewsonline.com#table(width=300)(height=250)
google.com,google.ca,google.co.uk,google.com.au#div(ads)

to just give a couple of examples.

Why don't you use an adblocker? And put the intelligences on the place where you expect it, within the html content?
_________________
only when it is dark enough, can you see the stars
Back to top
View user's profile Send private message
regomodo
Guru
Guru


Joined: 25 Mar 2008
Posts: 445

PostPosted: Tue Jun 02, 2009 7:15 pm    Post subject: Reply with quote

Cheers for clearing that up.

Reason why i'm blocking through /etc/hosts as i'd try to offload all adblocking on my squid proxy server for my home network. I must admit, turning off adblock+ provides a noticeable increase in responsiveness.
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Wed Jun 03, 2009 6:32 am    Post subject: Reply with quote

Personally, I like ad blockers better, with host files, the problem is that you get all these broken images still on your webpage. Now exactly because an ad blocker does much more processing (it looks inside the html and it changes the html) it is a little slower. On most modern machine I would say not noticable.

BTW, you know of Squid Anti-Ad?

And another attempt also shows how to replace the broken images with an alternative image if you're using squid anyway.
_________________
only when it is dark enough, can you see the stars
Back to top
View user's profile Send private message
vaguy02
Guru
Guru


Joined: 25 Feb 2005
Posts: 424
Location: Hopefully in one place

PostPosted: Wed Jun 03, 2009 5:37 pm    Post subject: Reply with quote

The way I handle ads, is a DNS blackhole. Most ads aren't hosted on the same server as the content. They usually perform lookups for their content. I just monitor the traffic, find the domain names for the spam lookups. Then put in a poison zone in my Bind setup, so that domain returns 127.0.0.1 (ie. page cannot be display'ed).

Just wanted to add 2cents.

Vaguy02
_________________
Linux Registered User #458185

Intel Quad-Core w/ 4gigs Ram w/ 8800 GTX - Windows 7 RC
2x (Intel Dual-Core w/ 2gigs Ram - Gentoo)
Mac G5 Dual-Core w/ 2gigs Ram - OS 10.5
Back to top
View user's profile Send private message
freaky
n00b
n00b


Joined: 05 Jan 2003
Posts: 23

PostPosted: Fri Jun 05, 2009 11:40 am    Post subject: Reply with quote

Quote:

The way I handle ads, is a DNS blackhole. Most ads aren't hosted on the same server as the content. They usually perform lookups for their content. I just monitor the traffic, find the domain names for the spam lookups. Then put in a poison zone in my Bind setup, so that domain returns 127.0.0.1 (ie. page cannot be display'ed).


Because of people blocking them like these more and more are hosted on the same server. Some even go as far as trying to kill things like adblock+ by placing them in /images etc. with the other images. Block the adds there will block a lot of 'valid' images as well.

Whilst I use it myself too, I must admit it's not nice to the site owner. For a lot of sites the only income they have is from the adds. If enough people block them succesfully, you will have to eventually say farewell to the site as it will just go bankrupt or isn't worth the effort anymore.

Personally, I don't hate image adds that much, I do hate flash adds with a passion though, mainly because flash on linux has a lot of cpu usage (and moving things distract :)). My girlfriend has a site she frequently uses on my laptop and I can hear it when she's on there because it will always get the CPU to 100% (core 2 duo 1,87GHz so that's pretty steep...) and the fan will make noise :D.
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Sat Jun 06, 2009 12:33 am    Post subject: Reply with quote

freaky wrote:

Because of people blocking them like these more and more are hosted on the same server. Some even go as far as trying to kill things like adblock+ by placing them in /images etc. with the other images. Block the adds there will block a lot of 'valid' images as well.


I doubt this is a growing trend, I hardly see it. Reasons are that usually the content provider does not want to change ads and stuff, but another company is providing the ads. Making them come from the content-providers webspace, makes it very hard for the ad-seller to change them.
So I doubt this is a common technique.
Anyway, a better content-html ad blocker can still find these ads in most cases. So maybe host blocking isn't the best strategy and a plugin doesn't take that much more cpu cycles.

freaky wrote:

Whilst I use it myself too, I must admit it's not nice to the site owner. For a lot of sites the only income they have is from the adds. If enough people block them succesfully, you will have to eventually say farewell to the site as it will just go bankrupt or isn't worth the effort anymore.


I don't feel responsible for the income model of other people. I'm also the guy who shamelessly walks away during a commercial break on television of my favourite movie, instead of sitting there and supporting them with my eyes. (you will have to pay for cable if you keep doing this! doubt it, the strategy has worked for decades...)
If people use a flawed market model it will colapse. And I would be a happier person without ads on the internet, where content is made for people who care (money), which I believe will be higher quality.
Besides, there is the fact of the prisoners-dillema, if I don't but other people do, if I do but other people dont ... So in the end I'm rather the smart guy who blocks them than other people. On top of that, I feel that I should be reasonably in control of what happens on my computer, if I can block stuff on my computer that is my choice.
_________________
only when it is dark enough, can you see the stars
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum