WHAT YOU NEED TO KNOW ABOUT ADBLOCK SOFTWARE
Are you blocking our ads? Or would you rather not view them? Click here to go ad free on this site

AdBlock Detection Script Demonstration

The AdBlock detection script will notify your users of the impact that they have on your, the website owner, by using AdBlocking software.

This page contains the AdBlock script with the test variable activated. It will always show the AdBlock message until you clear the message. This is what users who have AdBlock software will see when they view a site with the AdBlock Detection Script. Click here to return to the AdBlock Script

If you have cleared the message, click here to clear the cookie and refresh the page to see the message again.





This site is supported by advertising. Learn how AdBlock software harms webmasters.

28 Responses to “AdBlock Detection Script Demonstration”

  1. John Boyd Says:

    Thank you for your efforts on this issue.

    Seems odd that your post has been up since July and yet no-one has mentioned that the spelling “recieve” is incorrect on your pop-up.

  2. Anonymous Says:

    It claims I’m running Adblock software in both Firefox and IE. This is only true for Firefox. Perhaps it’s a bug?

  3. Rob Davis Says:

    I noticed that the window still appears even if I have Adblock disabled when I load the page.

  4. Anonymous Says:

    Turns on without any “ad blocking software” for myself as well.

  5. dermeister Says:

    Thanks for the tip! I’ve added “*/adblock.js” in my adblocking software.

  6. Anonymous Says:

    Funny, all I have to do is block adblock.js in firefox, and this doesn’t work at all…big threat this is.

  7. A Webmaster Says:

    popup happens with no adblock software turned on.
    as do the various other JS that i have located.
    Hopin to find one that works, yes I realize that the lowlife leeches will find a work around, but I’m more interested in the people that are honest and want to help my website continue, I may eventually put a EULA on my index page and require registration…pretty crappy thing to be forced into thinking about just because people want me to pay for their “free” internet.

    I don’t believe in obtrusive ad’s or pop-ups or anything that takes control of the endusers system. But a banner ad is very reasonable, and hey would it hurt you to click on one once in awhile, I mean if you like the site, and want it to stick around then what harm is there in opening a link in a new tab or window?

    Leeches(you know who you are) Go host yer own site (pay for bandwidth, servers, dev software, and pay yourself minimumn wage) then come back and complain about ad’s.

    Support your local Webmasters

    Anyway Rock On, thanks for a great site,

  8. Anonymous Says:

    Thank you… I’ve added adblock.js to my adblock software.

  9. I'm a person, not a "consumer" Says:

    This sound pretty cynical and all, but I’ve gotten to the point where I’ve turned JavaScript off entirely because of overlays (or whatever the technical term is, IANAPW (i am not a professional webmaster)) like that. I have a handy preferences bar in my browser, and when I find a site that has some javascript that I actually want/need to run, I check the little box next to ‘JavaScript’, which turns it on for that page, and when I’m done, I un-check the box. It’s a real shame that a few (well, a lot) of greedy webmasters and advertisment companies have ruined things for websurfers and website owners alike, but I’ve gotten to the point where I’m so sick of all the crap that some sites attempt to force upon me that I’m finally saying “no” to nearly every form of advertisement.

    I can’t begin to tell you how many banner ads i’ve seen since I got online around 1996. I’ve gotten to the point where I simply ignored them, and so have most other people, otherwise there would not be pop-ups/unders/whatever, flash-based overlay ads, flashing advertisements, and all the rest. It would seem that advertisers have yet to gain any sort of understanding of the issues people have with some forms of advertisements, because I’ve finally gone from ignoring simple banner ads to blocking almost every single advertisement I come across. I’m fed up with all the crap that gets shoveled onto my browser window, and I’ve decided to take back my web browsing experience. In the same way that I will not tolerate a salesperson forcing their way into my home and shoving advertisements in my face, neither will I tolerate websites that attempt to force advertisements upon me (guess what? i own a replaytv, too - i watch what I want to watch, not what Mr. Turner or anybody else decides I will watch). This is MY choice that I have made. If a webmaster chooses to block me from accessing their site based on my choice, that’s fine. I’ll choose to visit another website that doesn’t have such an idiotic policy.

    Advertisements are NOT the only way for a webmaster to make money. I am an HUGE fan of the PayPal Donate Button, and I have no problem at all with tossing a few dollars the webmaster’s way, as a means of thanking them for providing valuable content. Speaking of valuable content, I don’t mind a paid subscription model for certain websites. I’ve got subscriptions to Salon, NYTimes, and a subscription to Jane’s through my job (which cost my employer nearly $40,000); so if you don’t like people blocking your ads, go ahead and move over to a subscription-based model. If your website is as valuable as you think it is, you’ll have no problems offsetting the cost of running it via subscription fees. But of course, if your website is merely a platform for an attempt to make money from advertisements, I’d suggest a new line of work. The time of such businesses is rapidly running short…

  10. Captain Says:

    Some ideas for making this adblock script even more functional and foolproof:

    * Rather than including a separate JS file, just dump it on each page. The practicality of this depends on your site design and structure. On my sites, all pages have one parent file which then includes modules on each page. Thus, I can easily dump in the adblock.js to my one page and it works on the entire site

    * If that isn’t an option for you, why not try randomizing the js name? You’ll need php/mysql for this, here is a basic framework:
    - Setup a db table that will hold the adblock.js filename. On each page load (or every few loads, as you like) grab the adblock.js filename from the db, setup a new name (ie, an md5(time())), rename the filename to that new name and then dump that hashname into the db.

    With the last method, you are changing the name constantly. It isn’t foolproof because users can still block each random filename, but it is much more hassle for them, and after awhile their adblock list will be bloated.

  11. Anonymous Says:

    Adblock rocks.

  12. Captain Says:

    To those of you who’re getting the adblock detection even when you don’t have ad-block on, this is most likely because you’ve changed the name of the test image (”/banner.gif”). If you have changed the name, you must also change the occurence of “banner” in adblock.js with whatever the filename is (without extension).

  13. blockads Says:

    I think we should block such adblocking discovery scripts first ! Another chapter in the war against web ads which spoils everyone’s web experience and wastes bandwidth, so that some webmasters can make money !

    =========================================
    = Say NO to web ads ! Reclaim your web! =
    = You have the right to block ads ! =
    ===============blockads@gmail.com==============

    Post comments to :
    blockads@gmail.com

    Use firefox http://www.mozilla.org/support/firefox/adblock

  14. Anonymous Says:

    I don’t mind a few ads, but what is really ridiculous are those ones that pretend to be Windows error messages(they look especially stupid on my iMac running Linux), and the ones offering a “free” ipod, which ends up being not free at all, but just a way to sucker you into signing up for rip-off credit card deals. And I don’t like the idea of my web-browsing habits being tracked and the information sold to marketers.

    So I use “Mike’s Ad-Blocking Hosts File” and Firefox’s Ad Block extension, and bugmenot.com for anything which asks me to register, and dodgeit.com for anything which demands an e-mail address.

    Now if I could just get a list to block all of those goddamned fake results sites that are dynamically generated when I do a web search.

  15. Etaoin Shrdlu Says:

    Your popup says, “Or, if you have installed AdBlocking software, . . .”

    As it is used here (incorrectly, on many levels) AdBlocking is an adjective referring to and modifying the noun software; it is not a proper noun, so the b should not be capitalized.

    Adblock, the extension available for Firefox, does not capitalize the b. I doubt there is any software called AdBlocking. If there is, the person who named it would be exposing himself to the world as unlettered.

    In any case, the word in question is not legitimate. The three syllables in the order presented must make up two words: ad blocking. When the two precede the word software, the two words become a double modifier that requires a hyphen: ad-blocking software. Because of this, and without the hyphen, the phrase would suggest an ad that blocks software. Compare and contrast:

    the ad blocking software
    the ad-blocking software

    Thus endeth the lesson.

  16. Anonymous Says:

    In my opinion, if you need hundreds of ads on your site, then you probably shoudn’t run it to begin with. Without “AdBlocking Software”, I find the web to be unbearable.

    Sure, I can see how webmasters could be annoyed by people not looking at the adverisements, but the truth is that some of these ads, when clicked, will install crudware onto the computer, which doesn’t help anyone but hackers and the adverisement company.

    There must be better ways to fund a website than advetising.

  17. Jack_of_ads Says:

    This is actaully better than disabling the entire site if an advertisment has been block, great work on imforming the user. but since alot of sites use advertisements that are threatening my privacy and are distrating, I’m still going to block ads anyway until times change. what happend to simple homesite based ads or “pure” text ads?

  18. Jack_of_ads Says:

    oh wait.. you said the bait was banner.gif? I didn’t even block banner and still got the warning.. Couldn’t you use something less generic but more specific like “doubleclick_ads_click.gif” for the bait.

  19. zachary wilson Says:

    very nice! i’m putting you at my favourits. 1 small clove garlic: http://www.techteacherblog.com/archives/2005/09/05/show-off-student-work-with-a-full-size-poster/ , about a year ago i started

  20. arg Says:

    A combination of Adblock and the NoScript extensions for Firefox will keep most advertisements and web-bugs at bay.

    Take back the Web!

  21. Ritter Says:

    This code sample doesn’t work,.. banner.gif (the bait) does not get blocked, however the script detects that it does. This false alarm doesn’t prove functional for a production site trying to reclaim its advertising viewership.

  22. Syron Says:

    You’re free to set up your websites however you want, but once code gets to my end, I’ll display it however I want. I block intrusive ads like doubleclick, but I choose to allow stuff like googlesyndication. If your ads are like the ones on this website, I’ll see them. If you or they annoy me, then I block them. I also don’t use filter sets, so if I’m browsing random websites for information, I’m more likely to see ads.

  23. Tassoman Says:

    Your script doesn’t work on firefox throws thats errors:

    Errore: syntax error
    File sorgente: http://www.adblock.org/2004/07/adblock_detection_demo/
    Riga: 86
    Codice sorgente:

    Errore: AdBlockTest is not defined
    File sorgente: http://www.adblock.org/adblock.js
    Riga: 59

  24. Anonymous Says:

    This isn’t a test page. With the test variable set to always display the message, it’s impossible to tell if it’s really detecting adblocking software. At this point, it’s more a “javascript enabled” detector.

  25. fred Says:

    To all you tw@s who think that blocking ads will help ‘take back the web’.

    It costs money to run websites, the more popular the site is, the more it costs to run.

    All you are doing is forcing websites to find new income streams and when all the sites you enjoy visiting go subscription based you have no one to blame except yourselves.

  26. Bernd Says:

    @fred:
    Then there is something terrible wrong with the net.
    I have a server (humble 2ghz Celeron) for 25€ from $HOSTINGPROVIDERFROMGERMANY (no ads ;) ) and i have 1 TiByte free per month.

    If you have a website then this website is your hobby.
    Hobby costs money and unless you have some kind of big portal site you will never reach the traffic limit of your hosting plan, so it stays low.
    OTOH, if you have a big and heavily used portal site, then sell merchandise, sell special services or just put some “Donate!” button somewhere, but please, no ads that goes some user on the nerves.

    (Might as well modify AdBlock so that he loads the ads but wont show them…)

  27. d3viant Says:

    In the beginning… The Internet WAS supposed to be educational and government ONLY. No ads, no selling crap, just the free and unobstructed proliferation of information. Does anybody else remember that? Before .com? I do. It was nice. Screw your advertising, marketing, and commercialism. Screw your attempts to track me and my surfing habits. Screw anybody whose web presence depends on ad revenue. Marketing is Evil! I don’t and never will have ads on MY site and I never EVER support any web ad. I have never intentionally clicked on one, and I never will. May Firefox and Adblock-Plus spell the end of web advertising! What a waste of storage space and bandwidth, and most ads are just trying to rip people off, or install some type of malware through that gaping security hole some people refer to as a browser, IE! May the marketing-bastards and uncreative webmasters that “depend” on them wake up and stop being “Suckers of Satan’s c*ck,” to quote Bill Hicks. To hell with ads, web portals, and web bugs! Good riddance! Long live Adblock-Plus!

  28. The Technology Liberation Front » Privacy Solutions Series: Part 2 - Adblock Plus Says:

    […] Moral exhortation - websites might display this kind of pop-up notice to ADP users: […]

Leave a Comment