Advanced Traffic Statistics: Live Radar & WAF Security

Advanced Traffic Statistics: Live Radar & WAF Security 1.8.0

No permission to download
This major update focuses heavily on Privacy (GDPR compliance), system stability, and giving you more control over your data. We highly recommend all users upgrade to this version.

What's New in 1.8.0:

  • [Privacy & GDPR] 100% Local Assets (No CDN): We have moved all external resources locally! The Interactive Map libraries (ECharts) and all country flag icons (SVGs) are now hosted directly on your server. The add-on makes zero external CDN requests, guaranteeing absolute privacy for your visitors and making your dashboard load instantly even if external networks go down.
  • [Fix & Stability] Strict UTF-8 DB Enforcement: Fixed a critical MySQL query error [1366] caused by aggressive bots (e.g., Baidu) injecting malformed or non-UTF-8 characters into the User-Agent strings. The traffic logger now strictly sanitizes and enforces UTF-8 encoding on all incoming data before it hits your database, preventing query crashes.
  • [Fix] Map Visibility Bug: Fixed a logic issue where the interactive map was not displaying for registered members and guests even when the correct viewing permissions were enabled.

Important Upgrade Note: Because we have added new local image and script directories, please make sure you upload the entire contents of the new styles/statistiche folder to your server to ensure the map and flags display correctly.
  • Like
Reactions: CTS
This update focuses on resolving some visual issues, fixing a few bugs, and introducing a new control for managing public features. We recommend all users upgrade to this version.

Changelog / Release Notes:
  • Added: New option in the admin panel settings that allows you to set a specific permission for viewing the interactive map.
  • Fixed: Fixed the layout for the full-screen page when using the forum's light style.
  • Fixed: Corrected and improved some translation strings.
As always, before proceeding with the update, we highly recommend performing a full backup of your forum.

For any issues or bug reports, please do not hesitate to contact us or reply directly to this thread.
We are incredibly excited to release version 1.7.8, which introduces one of the most visually spectacular and immersive features ever brought to Advanced Traffic Statistics!

Have you ever wanted to watch your server's automated defenses working in real-time, just like a true Cybersecurity Operations Center? Now you can.

🌟 What's New:

  • 🗺️ Global Live Threat Map: We have integrated a mesmerizing, fully animated interactive map right above your Live Radar. Watch in real-time as malicious bots, scrapers, and brute-force attempts are intercepted from around the world, visualized as red laser traces flying toward your server.
  • 🛡️ WAF Active Shield & Cyber HUD: * For PRO Users: If you have your AI Scraper Shield or Aggressive Crawler protection enabled, your server will be displayed as a pulsing "SECURE CORE" wrapped in an impenetrable blue force field.
    • For Free Users: You will still see the attacks flying in, but your server will display an "UNPROTECTED CORE" with a red "VULNERABLE" warning on the Heads-Up Display. Upgrade to PRO to activate the deflector shield!
  • 📍 Smart Server Geolocation: The map automatically detects your server's physical datacenter location via your IP and the MaxMind database. Alternatively, you can set your exact coordinates (Latitude/Longitude) manually in the add-on options for millimeter precision!
  • 🎨 Intelligent Adaptive Design: The map isn't just a static image. It dynamically reads your forum's colors!
    • Dark & Glass Mode: Transforms into a stealthy, deep-slate military radar.
    • Light Mode: Switches to a clean, crisp vector map with elegant solid grays.
⚙️ How to update:Simply upload the new files from the 1.7.8 zip and upgrade the add-on from your Admin CP. No template modifications are required.

Enjoy the view, grab a cup of coffee, and watch your WAF destroy those bad bots in real-time! 😎🛡️
1772324922590.webp
This update introduces a major leap forward in traffic analysis, transforming your dashboard into a true Security Operations Center (SOC) powered by Artificial Intelligence, alongside important core refinements.

New Features:

  • 🤖 AI Traffic Analyzer: Added a new powerful prompt generator button. With a single click, the add-on compiles your structured real-time data (Threats, Scrapers, Bot Hits, Human vs Bot ratio) into an engineered prompt. You can easily paste it into ChatGPT, Claude, or Gemini to receive an immediate, professional cybersecurity audit and actionable firewall/robots.txt advice.
  • 📥 Emergency CSV Export: Added an "Export CSV" button directly on the Live Traffic Radar. Instantly download a complete spreadsheet of the last connections (IPs, Geo, Threat Tags, User Agents, Target URLs) to easily forward malicious IPs to your hosting provider or network firewall in case of an ongoing attack.
Bug Fixes & Core Optimizations:

  • Midnight Ghost Fix: Entirely rewritten the tracking engine's midnight rollover logic. The tracker now rigorously respects the individual XenForo Board Timezone using native PHP DateTime instances, completely avoiding database "drag" of historical hits from caching bots (like Facebook) across different days.
  • Widget Chart Accuracy: The 7-day trend chart in the Overview Widget now correctly aligns with the local timezone rollover, eliminating the rare "extra day / double date" graphical glitch.
  • Smart Permission Handling: The new AI and CSV tools are intelligently disabled natively if the viewing administrator lacks the necessary "View Live Traffic Radar" permissions or a valid license, displaying an informative tooltip.
    aitraffic.webp
This update expands the capabilities of the Live Radar introduced in the previous version, equipping it with a true behavioral analysis engine. The system no longer just tells you who is on your forum, but analyzes in real-time what they are trying to do.

🛡️ New Behavioral Analysis (Threat Tags)The Live Radar now scans browsing habits and automatically assigns visual micro-badges to highlight anomalous activities:

  • 🧲 [SCRAPER] (Purple): Identifies entities performing massive data extraction and heavy bandwidth consumption (triggers over 300 Hits in suspicious sessions).
  • 🔓 [SCANNER] (Cyan): Detects hacking attempts or vulnerability scouting. The system intercepts anyone looking for system files, backups, or foreign CMS panels (.env, .sql, /wp-login, etc.).
  • 🚪 [BRUTE FORCE] (Orange): Flags repeated attacks on login pages. Smart Thresholds applied: The system distinguishes between an attack bot (low threshold) and a real human user who simply forgot their password (high threshold), preventing false positives and accidental lockouts of your members.
✨ UI/UX Design

  • Micro-LED Status: The "Evaluation/Score" column of the Radar has been completely redesigned. Bulky rectangular buttons have been replaced with sleek, glowing "Micro-LED" visual indicators. The radar is now much cleaner, compact, and readable.
  • Updated Legend: Restructured the legend box to include explanations for the new Threat Tags and the new visual style.
🐛 Bug Fixes & Logic Tweaks
  • BAN Button Logic Fix: The "BAN IP" action button will no longer appear for Bots explicitly classified as "GOOD" (e.g., Googlebot, Facebook), even if they correctly trigger the "Scraper" badge due to their high indexing volumes.
  • Like
Reactions: Wanji
This is one of the biggest updates ever released for this add-on. We've transformed the statistics into a true security command center (WAF), introducing real-time analysis tools, instant blocking actions, and a new robust data calculation engine.

✨ New Major Features (Live Traffic Radar & WAF)

  • New "Live Traffic Radar": A real-time investigative panel showing the last 150 forum accesses, detailing IP, Country, Bot/User Identity, Target URI, Hit count, and Trust Score.
  • 1-Click IP Ban System (Brand New): Added a tactical button in the Radar that appears exclusively for identified malicious bots. With a single click, permanently ban the attacker's IP address. This is natively integrated with XenForo's core firewall (XF:IpMatch).
  • Smart Bot Classification: Added [GOOD], [AI], and [BAD] buttons to train the firewall. A new heuristic algorithm automatically extracts the clean "signature" of the bot (ignoring version numbers and fake browser strings), creating bulletproof universal blocking rules.
  • AbuseIPDB Integration: IP addresses in the Radar are now one-click links to AbuseIPDB for instant threat reputation analysis.
⚙️ New Hybrid Measurement Engine & Core Fixes

  • Human Traffic & Trends (Unique IPs): General charts (Humans vs Bots, Devices, Browsers, 30-Day Trend, Sidebar Widget) now strictly use Unique IPs to ensure accurate demographic proportions.
  • Security & WAF (Hit Volume): Protection-focused sections (Geo-maps, Top blocked bots) use Total Volume (Hits) to show the real impact on your server bandwidth.
  • Timezone Desync Fix: Fixed a bug that caused double dates to appear in the "30-Day Trend" chart during night hours due to the offset between the MySQL server (UTC) and the forum's local timezone.
  • Sidebar Widget Fix: The bot count has been unhooked from XenForo's default session system and now accurately displays total daily unique bots.
💎 UI/UX Enhancements

  • Chart.js Optimizations: The Y-axis of monthly and geographical charts is now forced to always start at "Zero" to prevent misleading visual scaling.
  • Smart Glass Mode: Apply the Glass/Blur effect exclusively to specific style IDs (e.g., Dark Themes), preventing readability issues on light forum themes.
  • Foolproof Protection: Manual classification buttons auto-disable if a generic browser is detected, preventing accidental bans of real human users.
  • Legend UI: Fixed a text-wrapping issue in the legend buttons on smaller screens.

1772032045344.webp
Hi everyone,

Thank you for your continuous feedback! This update brings a crucial structural improvement, specifically designed to optimize performance on high-traffic boards.

Thanks to the reports from our community (specifically regarding XenForo cron entries stalling and thread views not updating), I have completely refactored how the add-on handles database maintenance.

Changelog 1.7.4:
  • Major Performance Overhaul: Moved heavy database tasks (such as pruning old logs and aggregating yesterday's traffic data) out of the real-time Widget.
  • New Dedicated Cron Entry: Maintenance operations are now handled by a lightweight, dedicated background Cron process (Statistiche - Manutenzione Giornaliera). It runs silently once a day, completely eliminating database bottlenecks during peak traffic hours.
  • Fixed System Cron Stalling: Resolved the issue where heavy DELETE queries under high traffic could lock the database tables and stall XenForo's native cron queue.
  • Ultra-Light Widget: The sidebar widget now only performs fast SELECT operations, drastically reducing the overall load on your server.
Upgrade Instructions:Simply upload the new files and upgrade the add-on from your Admin Control Panel. Your existing data and history are 100% safe. The new cron will automatically respect your existing "Pruning Days" setting in the add-on options.

Thank you to everyone who helped test and report this!
Changelog:

  • NEW: Top Blocked Bots Chart: Added a new horizontal bar chart to the main report page. It displays today's "Top 10 Blocked Bots," giving you immediate visual feedback on exactly who is attacking your forum and being stopped by the AI/Junk Shields.
  • PERFORMANCE: Core Optimization: Implemented an optimized version of the core file (Listener.php) featuring a smart cache limiting system. This reduces database write operations by approximately 90% without losing tracking precision.
  • OPTION: Navigation Link: Added a new setting to enable a public statistics link positioned under the "Members" tab (useful if you prefer not to use the sidebar widget). The link location can be fully customized and moved anywhere via the XenForo Admin Panel (Public Navigation).
  • DESIGN: Visual Overhaul: The report page graphics have been completely rewritten to provide a cleaner, more modern, and easier-to-read visualization of your data.

1770937846032.webp

1770937876331.webp

1770937903168.webp
Changelog:

  • NEW: Top Blocked Bots Chart: Added a new horizontal bar chart to the main report page. It displays today's "Top 10 Blocked Bots," giving you immediate visual feedback on exactly who is attacking your forum and being stopped by the AI/Junk Shields.
  • PERFORMANCE: Core Optimization: Implemented an optimized version of the core file (Listener.php) featuring a smart cache limiting system. This reduces database write operations by approximately 90% without losing tracking precision.
  • OPTION: Navigation Link: Added a new setting to enable a public statistics link positioned under the "Members" tab (useful if you prefer not to use the sidebar widget). The link location can be fully customized and moved anywhere via the XenForo Admin Panel (Public Navigation).
  • DESIGN: Visual Overhaul: The report page graphics have been completely rewritten to provide a cleaner, more modern, and easier-to-read visualization of your data.

1770936473837.webp

1770936499167.webp

1770936524699.webp

Attachments

  • 1770936567870.webp
    1770936567870.webp
    4.7 KB · Views: 22
We are thrilled to announce the release of Advanced Traffic Statistics version 1.7.1!

This update introduces a crucial analysis tool for your forum's security and resolves some annoying bugs reported by the community.

🚀 Main New Feature: Global Threat Intelligence​

With version 1.7.1, we've introduced a new section dedicated entirely to the "Cyber-Geography" of your traffic. Leveraging GeoIP integration (MaxMind or Cloudflare), the add-on now maps not just human users, but the exact origin of Bots as well.

We have added two new dedicated charts:

  • Threats Origin (in red): Shows which countries malicious bots, aggressive scrapers, and unauthorized AIs (e.g., Bytespider, ClaudeBot, etc.) are coming from.
  • Authorized Bots Infrastructure (in green): Confirms the geographical origin of legitimate bots (e.g., Google, Bing), helping you identify any spoofed crawlers (a Googlebot originating from Russia is clearly a fake!).

💡 Why is this so important?​

Until now, we could know which bots were attacking us, but not from where. With Global Threat Intelligence, administrators gain Actionable Intelligence.

Practical example: If your forum has an exclusively European audience, but the chart shows that 90% of your "Junk/Bad" traffic and scraping attempts come from specific countries (e.g., China, Singapore, or Russia), you can proactively block those entire nations directly from your firewall or Cloudflare, drastically reducing server load and improving security.

Note: Like the rest of the advanced dashboard, this section is integrated into the Pro protection system. It is visible to administrators but obfuscated for those without an active license.

🛠 Bug Fixes & Optimizations​

  • CRITICAL FIX - File Health Check: We resolved a bothersome false positive that caused an "Unexpected contents" error on the src/addons/Statistiche/_data/templates.xml file. The export package has been rebuilt and completely cleaned, now guaranteeing a 100% clean and green native XenForo integrity check.
  • UI FIX - Sidebar Widget: Fixed a visual issue where the online users' "Pulse" animation (the blinking green dot) in the sidebar widget was partially cut off on the left margin due to the CSS shadow. It now has the proper spacing, and the animation is smooth.
  • Template Optimization: We performed a deep clean of the frontend code (HTML/CSS/JS), removing all hardcoded text and ensuring that every single string passes through XenForo's native Phrase system, making translation even easier.
This update is highly recommended for all users. As always, simply upload the new files via FTP and run the upgrade from the XenForo Add-ons control panel to automatically apply the new templates and features.

Thank you for your continued support and for the feedback that helps us constantly improve! 🛡️📊

1770802714806.webp
Back
Top Bottom