Detect ad blockers with 1 line of code
Currently detects:
- AdBlock
- Adblock Plus
- Brave
- AdBlocker Ultimate
- AdGuard AdBlock
- 1Block
- Ghostery
- Anti Adblock Detector (w/ AdBlock)
 
Demo: https://odddevelopment.github.io/Simple-Adblock-Detector/
- 
Add Detector Code: - Create a JavaScript file with a random name.
- Make the content of the file simpleblocker.js's code.
- Avoid mentioning "ad block" in the file name to prevent it from being blocked by ad blockers.
 
- 
Integrate into Your Site: - Add the following code on page where ad blockers should be detected:
<script src="myrandomfilename.js"></script> 
- Replace "myrandomfilename.js" with your file name.
 
- Add the following code on page where ad blockers should be detected:
- 
Configure Redirect Page: - Setup the page people get directed to.
- Users are redirected to ./disable-adblock(ex.https://example.com/disable-adblock) on this page you can put what you want people with ad blockers to see.
 
- 
Testing: - Test it out!
- If you have any issues/feedback, get help on the issues page.
 
- 
Support Us: (its free <3) - If you find this project helpful, consider leaving a ⭐Star as a token of appreciation.
 
