Free

Detect AdBlock

Detect ad blockers and show your visitors a message

Detects ad blockers and shows your visitors a warning: a modal dialog that asks them to disable their ad blocker, or a banner they can close.

Features

  • Detects ad blockers: Invisible bait elements and a bait script served by your own site.
  • Modal or banner: A dialog that asks visitors to disable their ad blocker, or a banner they can close.
  • No cookies: A closed banner stays hidden for a while, stored in the browser without a cookie.
  • Translated: Texts in English, German and Turkish that follow the page language, or your own texts.
  • JavaScript events: React in your own way with the adblock:checked and adblock:detected events.
  • Your own warning: Override the snippet to show your own markup.

Requirements

Kirby 5 or 6 and PHP 8.2 or newer (Kirby 6 needs PHP 8.3). For older Kirby versions, use version 1.0.2.

Installation and documentation

Installation, options and examples are in the README on GitHub. The release notes are on the releases page.

Do you need custom plugin?

We will be happy to assist you by writing to us about your needs.