AdBlock Usergroup Swap & Tracker

AdBlock Usergroup Swap & Tracker v3.1.0

No permission to buy ($45.00)
  • FIX: JavaScript load issues
  • FIX: Using cache corrupts javascript and prevents tracking (redis, maybe others)
  • Update: (temporary) Caching completely disabled as it interferes with JS packer encryption
Please refer to the images posted along with this version update for a visual explanation.
  • NEW: AdBlock display for users AdBlocking [ link('account/adblock-tracker') ] (default=off)
  • NEW: AdBlock tracking details for OS and Device Type
  • NEW: Statistics available in native XenForo daily stats display
  • Added cron to delete entries older than X days for device type (default=30)
  • Added option to "Preserve last X entries per device type" (default=10)
  • Added option "flood check" to ensure users don't hammer refresh to clear AdBlock status
    • (default=8 seconds, 0 to disable)
  • Added option "Ignore the following routes from tracking"
  • Added option "Display AdBlocking information on /acccount page"
  • Added option "Display AdBlocking device information on /acccount page"
  • Added option "Maximum number of rows of device list to display"
  • Added option "Should a single AdBlock detection reset current non-detects back to zero?"
  • Added option "Do not allow users to masquerade as crawlers to avoid detection" (default=on)
  • Added option to "Cache script lifetime" minutes (default=15)
  • Added Detection\MobileDetect package from composer (Mobile/Tablet/Computer)
  • Added foroco\BrowserDetection package from composer for OS type tracking
  • Added stats Job enqueued post upgrade to back date statistics for past role changes
  • Note: Flood check only applies to "Clear" status because there's no advantage to flooding "AdBlocking"
  • Note: Set flood check to 0 to disable flood check entirely
  • Note: Only swaps statistics are back dated with an enqueue log event
    • All other statistics will need to accumulate moving forward
  • FIX: Prevent conflicts with other onload JS events
  • FIX: Running AdBlock Pro with AdBlock Tracker led to a conflict for guest tracking
  • FIX: Move JavaScript to an IIFE to prevent conflicts
  • FIX: ErrorException: [E_WARNING] Undefined array key "wutime_tracker_debug"
  • FIX: Abide by swap to AdBlocking setting (took 1 extra page view previously)
  • FIX: Abide by swap to Clear setting (also took 1 extra page view previously)

Attachments

  • Screenshot 2024-08-02 at 2.42.58 PM.webp
    Screenshot 2024-08-02 at 2.42.58 PM.webp
    66.3 KB · Views: 66
  • Screenshot 2024-08-02 at 2.43.22 PM.webp
    Screenshot 2024-08-02 at 2.43.22 PM.webp
    63.2 KB · Views: 53
  • Screenshot 2024-08-02 at 2.43.36 PM.webp
    Screenshot 2024-08-02 at 2.43.36 PM.webp
    65.3 KB · Views: 56
  • Screenshot 2024-08-02 at 2.43.50 PM.webp
    Screenshot 2024-08-02 at 2.43.50 PM.webp
    37.7 KB · Views: 51
  • Screenshot 2024-08-02 at 4.55.19 PM.webp
    Screenshot 2024-08-02 at 4.55.19 PM.webp
    37.8 KB · Views: 62
  • Like
Reactions: Stuart Wright
  • Fixed: Ensure crawler option is obeyed when rendering detection
  • Fixed: Obey ignored usergroups if set
  • Fixed: Changed template modification to simple replacement from regex replacement
  • Fixed: Previous version left <> tags at footer of website
    • Due to regex vs simple replacement (changed to simple replacement)
  • Removed all 3 event listeners that are no longer required
  • Removed Listener.php as it's no longer required
  • Removed previous Crawler detect files and inclusions (replaced with JayBizzle)
  • Renamed template modification and added description
  • Composer update, no updates needed
  • Changed name to "AdBlock Tracker & Usergroup Swap" to be more concise
  • Added super fast detection v3
  • Added DNS adblocking detection (2 options, off by default)
  • Detection works with all levels of page/guest caching including CloudFlare
  • Added packaging, obsfucation, minification
  • Added three detection options (1 enabled by default)
  • Resolved undefined array key
  • Added 2x composer packages
  • Updated php requirement to 7.4
  • Randomized internal database record saving/keeping
  • Maintains chart functionality for anyone running v2.2.16 or lower
Tracking issues are now resolved.
  • FIXED: Front-end tracking on XF 2.3
  • FIXED: Resolved a very frustrating authentication issue with XF's Ajax
  • FIXED: Removed the last occurrence of front-end jQuery
This build is front-end / visitor friendly with XF 2.3.

The administration charts / logs in the back end still need updating. I'll spend this week on it.
Do Not Use with XF2.3

There's a glaring issue with the Ajax post, not least of which is there's still a tidbit of jQuery included.

I'll work on this as soon as possible.
PLEASE READ:
  • Front-end compatible with XF 2.3
  • Back-end is not fully compatible with XF 2.3 (still some work to do on the charts navigation)
  • Follow up releases will resolve issues with the back-end charting
  • This is released for those of you that need/want to upgrade to XF2.3
IMPORTANT NOTE:
  • DISABLE YOUR ADBLOCKER IN THE ADMIN SECTION
    • If you can't click "Options" on this "Add-on" page in admin [ /admin.php?add-ons/ ]
    • Turn off your AdBlocker
    • The AddOn's JavScript admin path is on the Global list for most AdBlockers
    • It causes a silly issue where you can't open the drawer for "Options, Uninstall, Disable, Etc.)
    • Unfortunately, the only real solution is to either:
      • Request removal (bad idea)
      • Or, change the Add-on path (inconvenient for everyone)
    • So for now, please disable your AdBlocker on: /admin.php
Detection Improvements:
  • Detection improved 3,4,5 fold (100%-300%+)
  • Resolved issues with uBlock
  • Fixed misc. other detectors with same update as above
  • Changed end points that were detected on [Global adBlock lists]
    • Future work in progress release is going to resolve this issue permanently (hopefully)
  • Updated easy list
Performance:
  • Removed extraneous detection that was on [Global adBlock lists]
Automatic Cron:
  • Cron to automatically delete inactive guests
  • Batch deletes run every 15 minutes
Options:
  • option: added numbers of days inactive to delete (default: 180 days)
  • option: size of batch to process per run
  • put complicated options lower in the list
  • moved some to advanced
  • add debugging
Charts
  • Fixed charts to show the same colour for "blocking" across all charts
    • Work in progress, currently the "Users" row of buttons is fixed
  • Add sort to top and bottom of chart
  • Increased log to 50 entries per page from 20
  • Added button to unhide all entities
    • Upgrading will automatically remove all "hidden" entries on upgrade, figured this was a quality of life thing seen as there was no way to "unhide" them previously
Default changes:
  • updated > guest tracking > off
  • updated > crawlers > on

Upgrade works fine, but I'd recommend an uninstall and re-install to get optimized defaults and to remove stale statistics.

This update will more accurately detect users adBlocking, hands down, no question.

Re-Install FAQ
  • Setup is easy after a re-install
  • Just reconnect your [AdBlock Detected] user group in the options
    • Whatever it was you named it
    • You would have done this through XF, and outside of this add-on, so no worries uninstalling
  • Your [AdBlock Detected] user group is not deleted or reset during re-install
  • Your users will remain in their user groups as they were before
  • Uninstall can take time to drop the MySQL table if you have a large forum, just a heads up
Upgrade FAQ
  • Post Upgrade
  • Check options as follows:
    • Check the "Cron delete batch size" and the number of days to delete
    • If you want to keep logs longer, increase the default of 180 days
    • The table growing isn't really a big concern, it's well indexed and very light-weight
NOTE IF TRACKING GUESTS:

If you've been tracking Guests all these months/years, you might want to, at the very least, delete guests.

1. Visit: admin.php?wutime-adblock-tracker/
2. Top-right corner, 2nd button, "Clear Logs". Choose "guests". Might take a while.
  • Angry
Reactions: GameNet
  • Added browser detection for "googleweblight" crawler user agent
  • Randomized a key element
  • Like
Reactions: Sunka
  • Usergroup swap rate modifier (increase limits for users that abuse usergroup swapping)
  • Increases number of non-detections required linearly as the number of previous usergroup swaps increase
Thanks to @Stuart Wright
  • Like
Reactions: Sunka
Back
Top Bottom