AdBlock Detection [anti-AdBlock]

xF2 Add-on AdBlock Detection [anti-AdBlock] v2.0.5

No permission to download
  • Made the secondary detection crawler friendly
  • SEO friendly (will not fire on known bots)
  • The overlay can now be made almost instantaneous on load (set timer to 0)
Note, setting the timer to 0 and disallowing "close overlay" will make your site almost inaccessible until the adblocker is disabled (to most novice users (the majority)).
  • Like
Reactions: Speddy20537
v1.8.9 - Updated script tag and randomized
  • Added <script type="text/javascript"> for <script>
    • improves backwards compatibility with old MS and handhelds
  • Randomized identifiers
v1.9.0 - Custom theme fix + notice flash fix
  • Fixed injection point for custom themes so the notice shows on custom themes
  • Fixed the notice JavaScript flash when the notice isn't to be shown on a non X page view
Thanks to @duderuud, @intgbh and @bzcomputers for their help and input
v1.9.1 - Added ability to close the notice
  • Added ability to close the notice for the end user
  • Ability to close the overlay follows the option setting for "Allow user to close the anti-AdBlock overlay or notice "
1576496420739.png
  • Angry
Reactions: Speddy20537
  • There's now an option to nag on first visit (useful if you've set your nag to only occur every X page views)

Attachments

  • nag-on-first-visit.PNG
    nag-on-first-visit.PNG
    2.4 KB · Views: 254
  • Like
Reactions: Speddy20537
  • The [[ I've Disabled AdBlocker ]] button now links to the same page the user is on, not the homepage
  • Randomized the current JS identifier (will do this on all new releases moving forward)
Thanks to @bzcomputers for the recommendation
  • Love
Reactions: Speddy20537
  • Updated addon language
  • Changed session counting enumeration to ensure reductions in "x views" are still captured
  • Added an administrator option/feature to allow you to set the prompt on X page views (instead of every page view)
  • Randomized the current JS identifier (will do this on all new releases moving forward)

Attachments

  • options-v185-highlighted.PNG
    options-v185-highlighted.PNG
    33.2 KB · Views: 211
This is a non-required update, v1.8.3 works fine and is a touch more difficult for newbies to circumvent.
  • Removed JavaScript obfuscation (WP JetPack was saying "Core.JS.Malware")
  • This update will no longer report a false positive for Core.JS.Malware
Strongly recommend upgrading to this version.

YOU MUST
revert any previous templates if the admin panel says they're out of date.
  • Fixed false-positive issue
  • Added eval to identifiers
  • Added try, catch statement to help prevent blocking
  • Added another Javascript randomizer
  • Updated to ensure jsmin="1" is set
  • Build-release now removes non-minified javascript
  • Haha
Reactions: Nontiquid
  • Added another Javascript randomizer
  • Updated to ensure jsmin="1" is set
  • Build-release now removes non-minified javascript
Top