nowfound

Life & fun · February 10, 2016

Detect Adblock

Detect Adblock is the easiest & most effective way for detecting visitors to your website who are using an adblocker. And best of all, it

Detect Adblock launched on February 10, 2016 with 6 votes and more than 50% of that year's launches. The site was still online in September 2026, 10 years on.

What it does

When a browser requests a website address it downloads the corresponding HTML file which includes internal & external references to Javascript files, CSS stylesheets and images. If the browser has an ad blocker installed, it will compare the names of referenced scripts & files against a "block list" and if there are any matches those files will be ignored. All block lists include a reference to "jquery.popunder.js" because it's a common name for JavaScript files that are associated with serving ads. Knowing this, save the following JavaScript code which creates a hidden div to a file called "jquery.popunder.js" and place it in the root directory of your website. Note: the obscure div id is…from detectadblock.com

Does a similar job

all alternatives →

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, February 2016

the whole month →