4 ms·
You'll stop seeing <iframe src="http://adserver.foo.com/?id=7382> http://adserver.foo.com/?id=7382>; and you'll start seeing <iframe src="http://www.foo.com/con
by jrockway 17y ago
You'll stop seeing <iframe src="http://adserver.foo.com/?id=7382> http://adserver.foo.com/?id=7382>; and you'll start seeing <iframe src="http://www.foo.com/content/7382.html> http://www.foo.com/content/7382.html>;
Some sites do this. In that case, you can guess that something is an ad based on the size of the image -- advertisers like to buy ads in standard-sized chunks, and you can just block all images that are that size.
Adblock also uses filters available from the Internet that automatically update at a certain interval. So if foo.com is even moderately popular, the filterset will be updated to block your site's ads reasonably quickly.
Finally, NoScript solves the problem of your adblock detector. If I don't run your detection code, the callback will not be called.
- axod 17y ago>> "Finally, NoScript solves the problem of your adblock detector. If I don't run your detection code, the callback will not be called." So just deny access if the callback isn't called with false :/ eg only render the content if the callback is called with false. The number of people browsing with js disabled is pretty moot these days.
- jrockway 17y agoThe number of people browsing with js disabled is pretty moot these days. The number of people using Javascript to deny access to their site is pretty low these days. If that increases, the number of people blocking Javascript will increase. I guarantee you that if someone wants to see the content on your site without ads, they will see the content on your site without ads. For example, you could just draw a white square over the ads instead of blocking them completely. You could make the DOM API return "uh sure, the ad is there", but not actually display it on the screen. You're fighting a losing battle, and because adblockers are auto-updateable, even small victories won't last long. It's probably a better use of your time to do something, anything, else. It's like DRM -- a lot of development time sunk, just to hurt legitimate users. It doesn't make sense.
- axod 17y agoAs I said, adblocking is extremely naive. <a href=http://www.foo.com>foo.com</a> http://www.foo.com>foo.com</a> could be a paid advert for all you know, and the fact it is or isn't is hidden from you, and your adblocker. So I'm afraid the adblockers are firmly at the ultimate losing side. Sure, you can block intrusive flashing in your face advertising, but that's only one small segment of online advertising. (And nowhere near as effective as text links). Well, the good news, is that you're an extremely tiny minority. Most people like ads. Many even click on them! Loads even go on to buy products! Using money!!!!
- houseabsolute 17y agoI wouldn't go so far as to say people like ads. They tolerate them and are influenced by them, yes, but like? That's taking it to a bit of an extreme. For my case, even though I'm defending these advertisements, I think they are poison. When possible, I pay to get service that lacks ads. If I could pay Google $100 per year to not show me any Adsense or Adwords ads, for example, I probably would.
- houseabsolute 17y agoPresumably you can make the content on your site dependent on Javascript to the extent that browsing without it will be pointless.