How do sites detect ad blockers?

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
User avatar
SteveMann
 
 
Posts: 166
Joined: Tue Jun 17, 2008 4:54 am

How do sites detect ad blockers?

Post by SteveMann » Sat Apr 21, 2018 8:06 pm

Just a curiosity. Does anyone know how sites are detecting ad blockers?

User avatar
BaconFries
 
 
Posts: 4249
Joined: Thu Aug 16, 2007 7:32 pm

Re: How do sites detect ad blockers?

Post by BaconFries » Sat Apr 21, 2018 8:25 pm

The detection is done by javascript.

User avatar
SteveMann
 
 
Posts: 166
Joined: Tue Jun 17, 2008 4:54 am

Re: How do sites detect ad blockers?

Post by SteveMann » Sat Apr 21, 2018 10:59 pm

But, how?

User avatar
BaconFries
 
 
Posts: 4249
Joined: Thu Aug 16, 2007 7:32 pm

Re: How do sites detect ad blockers?

Post by BaconFries » Sun Apr 22, 2018 11:29 am

Try Google using 'Detect AdBlocker javavscript' or 'How to detect AdBlocker' were you should find a example script you can use. Just my two cents, try not to force the user ( by script) to disable there AdBlocker so they can view, as it is a users choice if they wish to see ads or not (that's the purpose of using a adblocker) even if you are using them as a source of revenue, it is better to have a user visit than not at all.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest