Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 2.46 KB

README.md

File metadata and controls

44 lines (34 loc) · 2.46 KB

Simple Adblock Detector

Detect ad blockers with 1 line of code

Currently detects:

Try it out:

demo

Demo: https://odddevelopment.github.io/Simple-Adblock-Detector/

How to Setup Right Now

  1. 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.
  2. 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.
  3. 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.
  4. Testing:

    • Test it out!
    • If you have any issues/feedback, get help on the issues page.
  5. Support Us: (its free <3)

    • If you find this project helpful, consider leaving a ⭐Star as a token of appreciation.

star