maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] 'advoid' a hostfile based ad blocker (https://talk.maemo.org/showthread.php?t=30970)

rcull 2011-04-01 23:32

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Quote:

Originally Posted by Addison (Post 980131)
Is it not possible to block a specific graphic?

Say something like www.place.com/stupid.jpg.

I've tried this a few times but it doesn't seem to take for some reason.

Addison when I go to your link I dont see a jpg I get
Wondering why you're here??
so its difficult to help here

tso 2011-04-02 00:49

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Given that this is hostfile based, i suspect it is not possible. It can only block specific hostnames by basically redirecting it to the loopback address (127.0.0.1).

dchky 2011-04-02 03:25

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Just a question if I might, I haven't seen anyone ask it yet, but what is the performance impact on the N900 when using a very large host file? The list has to be scanned every time a lookup is needed so definitely there will be a delay - I'm guessing from all the positive comments that the delay is not noticeable.

I saw mention of 127.0.0.1 being used for the IP which is maybe not as fast as using 0.0.0.0 instead. Any thoughts on that?

tso 2011-04-02 03:36

Re: [Announce] 'advoid' a hostfile based ad blocker
 
not sure if going broadcast vs loopback have any noticeable difference.

rcull 2011-04-02 06:15

Re: [Announce] 'advoid' a hostfile based ad blocker
 
You can block any URL so if you inspect the source and find the link to the jpg then if the path to it is a full URL ( ie not just a local reference ../images/xxx.jpg ) you can specifically block it.

Any slowdown due to host table lookup is more than offset by the speed increase due to not having to fetch the adds.

Addison 2011-04-03 19:58

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Hey rcull.

I would like to block this image of unhappiness. :)

http://http.cdnlayer.com/cf/images/smilies/tongue.gif

rcull 2011-04-04 06:14

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Addison
I may not have been completely clear in my last post. What you are blocking is the server, so for instance on your URL what you would block is the whole of http.cndlayer.com. If the image is local, ie. on the same server as the rest of the content, which I suspect it is, then you would be blocking the complete site. In which case it makes no sense.

The only way to do this without affecting the rest of the content would probably be by using some sort of css.

Rick

tso 2011-04-04 06:57

Re: [Announce] 'advoid' a hostfile based ad blocker
 
The problem with CSS is that while it will hide the image, it will still be downloaded in the background (iirc). I toyed with using CSS to block those facebook fan boxes a while back as they caused Tear to reload the page continually. While it could hide the box from view, it did nothing to stop the reloading as that was part of the javascript driving the box.

Addison 2011-04-10 23:54

Re: [Announce] 'advoid' a hostfile based ad blocker
 
I think I goosed something bad on another forum I tend to visit.

I was there at the time when I was using Advoid, now none of the images are being shown anymore.

Any suggestions?

http://img690.imageshack.us/img690/5...1041019454.png

Addison 2011-04-11 01:04

Re: [Announce] 'advoid' a hostfile based ad blocker
 
I guess I just need to know where the host file is so that I can delete it and start all over again.

Because yeah, nothing else that I do seems to be working.

Thanks!


All times are GMT. The time now is 18:57.

vBulletin® Version 3.8.8