AdBlock Detection [anti-AdBlock] 2.0.5 – Xenforo 2
The AdBlock Detection [anti-AdBlock] 2.0.5 add-on for XenForo 2 is designed to detect users who are running AdBlockers (like uBlock Origin, AdBlock Plus, etc.) and take specific actions — such as showing a notice, blocking access, or encouraging ad whitelist permissions.
This is particularly useful for forums that rely on ad revenue and want to politely encourage users to support the site by disabling their ad blockers.
🚫 Key Features of anti-AdBlock 2.0.5:
- Real-Time AdBlock Detection
- Uses JavaScript to detect common ad-blocking behavior
- Supports all major ad-block extensions and browser-level blockers
- Customizable Warning Notice
- Show a fully custom message to AdBlock users
- Rich text formatting supported (can include links, images, styling)
- Multiple Action Options
- Choose what happens when AdBlock is detected:
- Display a dismissible notice
- Block access to the site or content until AdBlock is disabled
- Redirect to a specific page (e.g., a support or FAQ page)
- Delay content loading
- Choose what happens when AdBlock is detected:
- User Group Exceptions
- Exclude certain user groups (e.g., VIPs, staff, logged-in members) from detection
- Page-Specific Control
- Enable detection only on certain nodes or pages (e.g., homepage, threads, resources)
- AJAX Support
- Works with dynamic content loads and is compatible with XenForo’s modern JS framework
- Lightweight & Optimized
- Minimal performance impact, with asynchronous loading
🧰 Use Cases:
Site Type | Usage Example |
---|---|
Ad-supported forums | Politely prompt users to whitelist ads |
Premium forums | Block content and encourage upgrades |
Download/resource | Restrict access until AdBlock is disabled |
📝 Example Message (Customizable):
⚠️ We noticed you’re using an AdBlocker.
Our forum relies on ads to keep content free. Please consider whitelisting us or supporting us another way. 🙏
🧩 Integration & Compatibility:
- Compatible with XenForo 2.2+
- Works alongside other monetization tools like Google AdSense, Affiliate ads, or self-hosted banners
- Can be styled to match your forum theme
Would you like help crafting a custom message for AdBlock users or setting up conditional rules (e.g., only show to guests)?