SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member johaseo's Avatar
    Join Date
    Jan 2010
    Location
    Stockholm
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Warning: Watch out for AdBlocks and css naming convention

    Content on our company webpage disappeared when users were using the browser plugin AdBlock. I am working in the recruiting industry were we use "Ads" on our own webpage. We advertise our new job offers as such. This is not AdWords Ads or affiliate ads but our own manually created webcontent on our webpage. The problem for us was that our webmaster had named the css class "Adtext" (but in swedish: annonstext) like this:

    <p class="annonstext"> ..... </p>

    All text within this paragraph was deleted by AdBlocks (a browser plugin)


    This took us months before we new we had a problem so be sure you test your new web launch with AdBlocks first

    <snip/>
    Last edited by Mittineague; Jun 4, 2014 at 17:15.

  2. #2
    SitePoint Member johaseo's Avatar
    Join Date
    Jan 2010
    Location
    Stockholm
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Mittineague, Understood!

  3. #3
    SitePoint Wizard bronze trophy bluedreamer's Avatar
    Join Date
    Jul 2005
    Location
    Middle England
    Posts
    3,357
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I found that out a few years ago but it's a good tip for developers struggling to find out why some page element doesn't appear when it should!

    For reference AdBlock has a blocklist https://easylist-downloads.adblockplus.org/easylist.txt for reference.

  4. #4
    SitePoint Member
    Join Date
    Jun 2014
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you want to say we need to consider the adblocker for devlopment of our websites. I think most of the adblocker didn't work in the way you shows here. Acutally Adblocker remove the script to get excecuted in the browser so no server action no ad on the webpage.

  5. #5
    SitePoint Mentor silver trophybronze trophy
    Mikl's Avatar
    Join Date
    Dec 2011
    Location
    Edinburgh, Scotland
    Posts
    1,552
    Mentioned
    63 Post(s)
    Tagged
    0 Thread(s)
    Are you saying that you changed the class name from "annonstext" to something, and that caused the problem to go away?

    If so, I would be very surprised. In general, ad blockers don't rely on the hosting site flagging the ad in some way. If they did, webmasters would simply make sure that they didn't do that. After all, they have a vested interest in their ads showing up. Rather, the ad blocker uses an internal list of ad-serving sites to determine which ones to block.

    As far as I know, the only way to change the behaviour of an ad blocker is to edit its blacklist and/or its whitelist. It would be up to the individual user to do that.

    Mike

  6. #6
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,799
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Mikl View Post
    As far as I know, the only way to change the behaviour of an ad blocker is to edit its blacklist and/or its whitelist. It would be up to the individual user to do that.

    Mike
    I agree. It would be a rather useless blocker if everyone could simply rename the elements in their web page in order to bypass the blocker.

    There should be absolutely nothing that you can do regarding the code in your web page that will make any difference to adblockers and so there's no point in even thinking about such things when creating your page.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •