1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Any way to detect ad-blockers?

Discussion in 'XenForo Questions and Support' started by CyclingTribe, Oct 3, 2011.

  1. CyclingTribe

    CyclingTribe Well-Known Member

    I was wondering if there is any way to detect if someone is using an ad-blocker?

    I had an idea that you could possibly combine the detection with a feature to limit their access with perhaps a notice that says "We have detected that you use an ad-blocker so we have restricted what you can see at our site. Please turn off your ad-blocker for the full experience!"

    In other words - don't block our ads (which fund the site you are wanting to access) and we won't block the content!! Simples!

    Cheers,
    Shaun :D
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. CyclingTribe

    CyclingTribe Well-Known Member

    Fair enough. I just thought that if it was simple to implement it might be worth a try, but I don't want to waste time on it if it's a moving target ... (y)
     
  4. Marcus

    Marcus Well-Known Member

    It is rather simple. Just put a javascript ad into your ad serving system which creates a database entry for userid, time in the "user has ad enabled" database table. You run this ad with a frequency capping for 1 / month. All users not in this database table don't have javascript or they don't display your ads.
     

Share This Page