ZDN Adblock Detector

描述

ZDN Adblock Detector is a lightweight plugin that detects when visitors are using ad blockers and displays a friendly message asking them to disable their ad blocker. The plugin features:

  • Reliable adblock detection
  • Clean and modern overlay design
  • Customizable message
  • Flexible JavaScript loading options (external or inline)
  • Optional minified script for better performance
  • Lightweight and fast
  • Easy to install and use

JavaScript Loading Options

The plugin offers two methods for loading the detection script:

  1. External File (Default): Loads the JavaScript from a separate file
  2. Inline JavaScript: Embeds the code directly in the page

Some browsers like Chrome may block external JavaScript files that detect ad blockers. If the detector stops working, you can switch to Inline JavaScript mode in the settings.

Performance and Security

The plugin includes both regular and minified versions of the detection script. Using the minified version (enabled by default) provides:
* Better performance through reduced file size
* Additional protection against adblockers by making the code harder to detect
* Faster page load times

Plugin Images

Banner: banner-772×250.png
Icon: icon-256×256.png

螢幕截圖

  • Plugin settings page – Configure JavaScript loading method and minification options
  • Adblock detection overlay – Clean, modern design that appears when an adblocker is detected

安裝

  1. Upload the plugin files to the /wp-content/plugins/zdn-adblock-detector directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Go to Settings > ZDN Adblock Detector to configure:
    • JavaScript loading method (external or inline)
    • Script version (minified or regular)
  4. The plugin will automatically start working

常見問題

How does it detect ad blockers?

The plugin uses multiple detection methods to reliably identify when ad blockers are being used, including bait elements and behavior analysis.

Is it compatible with my theme?

Yes, the plugin is designed to work with any WordPress theme.

The detector stopped working in Chrome, what should I do?

If the detector stops working in Chrome:
1. Go to Settings > ZDN Adblock Detector
2. Change the JavaScript Loading Method to “Inline JavaScript”
3. Make sure “Use minified version” is enabled
These settings will make the detection code harder for browsers and adblockers to block.

Should I use the minified version?

Yes, we recommend using the minified version (enabled by default) as it:
* Improves performance
* Makes the code harder for adblockers to detect
* Reduces bandwidth usage

評價

2025年2月25日
Best open source Anti-adblock Super-light ⚡plugin as mentioned 👌 To the best of my surprise it even worked beautifully within brave browser unlike other plugin probably failed to detect brave browser adbocker/shield. 👍
閱讀全部2個評價

貢獻者及開發者

“ZDN Adblock Detector” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 ZDN Adblock Detector 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.3

  • Added customizable overlay text options in settings
  • Improved adblock detection efficiency
  • Fixed minor UI issues

1.0.2

  • Update detection script for better detection (ublock origin lite)

1.0.1

  • Added settings page for JavaScript loading method
  • Added option to use minified version of the script
  • Updated button text
  • Improved overlay behavior with page refresh

1.0.0

  • Initial release