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: 69
Joined: Tue Jun 17, 2008 4:54 am

How do sites detect ad blockers?

Post by SteveMann »

Just a curiosity. Does anyone know how sites are detecting ad blockers?
User avatar
BaconFries
 
 
Posts: 5327
Joined: Thu Aug 16, 2007 7:32 pm

Re: How do sites detect ad blockers?

Post by BaconFries »

The detection is done by javascript.
User avatar
SteveMann
 
 
Posts: 69
Joined: Tue Jun 17, 2008 4:54 am

Re: How do sites detect ad blockers?

Post by SteveMann »

But, how?
User avatar
BaconFries
 
 
Posts: 5327
Joined: Thu Aug 16, 2007 7:32 pm

Re: How do sites detect ad blockers?

Post by BaconFries »

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