Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeroenvdb/adblock-detect
Detect if a user is using an AdBlocker
https://github.com/jeroenvdb/adblock-detect
Last synced: about 2 months ago
JSON representation
Detect if a user is using an AdBlocker
- Host: GitHub
- URL: https://github.com/jeroenvdb/adblock-detect
- Owner: JeroenVdb
- Created: 2015-08-25T13:24:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-18T14:15:34.000Z (about 9 years ago)
- Last Synced: 2023-07-31T21:09:29.187Z (over 1 year ago)
- Language: HTML
- Homepage: http://jeroenvdb.be/adblock-detect/
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Detect if a user is using an AdBlocker
I like this approach for detecting an AdBlocker because it doesn't involve making fake 'ads.js' requests.
### Compatibility
| Browser | Compatible |
| ------- | ---------- |
| Chrome 44 + uBlock | OK |
| Chrome 44 + AdBlock | OK |
| Chrome 44 + AdBlock Plus | OK |
| Firefox + AdBlock Plus | OK |
| IE9 + AdBlock Plus | OK |### Blocklist compatibility
We check for id=adsense, this element should also be targetten (removed, hidden) by the AdBlockers
| List | Compatible | url |
| ---- | ---------- | --- |
| EasyList + Dutch | OK | https://easylist-downloads.adblockplus.org/easylistdutch+easylist.txt |
| EasyList without element hiding | NOK | https://easylist-downloads.adblockplus.org/easylist_noelemhide.txt |### Resources
- http://stackoverflow.com/questions/4869154/how-to-detect-adblock-on-my-website#answer-15093375
- http://marthijnhoiting.com/track-the-use-of-adblock-in-google-analytics/#