Skip to content

Detect ad blockers with 1 line of code (AdBlock, Adblock Plus, Brave, and more!) - Tags: Ad block killer, kill ad block, fuck ad block

Notifications You must be signed in to change notification settings

OddDevelopment/Simple-Adblock-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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