Title: GGSEC Stats
Author: GGSEC
Published: <strong>November 25, 2026</strong>
Last modified: November 25, 2026

---

Search plugins

![](https://ps.w.org/ggsec-stats/assets/banner-772x250.png?rev=3824448)

![](https://ps.w.org/ggsec-stats/assets/icon-256x256.png?rev=3824432)

# GGSEC Stats

 By [GGSEC](https://profiles.wordpress.org/patapik/)

[Download](https://downloads.wordpress.org/plugin/ggsec-stats.1.3.1.zip)

 * [Details](https://wordpress.org/plugins/ggsec-stats/#description)
 * [Reviews](https://wordpress.org/plugins/ggsec-stats/#reviews)
 *  [Installation](https://wordpress.org/plugins/ggsec-stats/#installation)
 * [Development](https://wordpress.org/plugins/ggsec-stats/#developers)

 [Support](https://wordpress.org/support/plugin/ggsec-stats/)

## Description

GGSEC Stats counts page views on your own server and tells you how much of your 
traffic comes from real people and how much from bots, AI crawlers and vulnerability
scanners.

Every request is recorded on the server, so bots and clients without JavaScript 
are seen too. A page view is counted as human only after a small browser beacon 
confirms that the page was actually shown in a visible tab. Everything else is reported
as bot traffic.

#### Features

 * **Humans vs. bots** – human page views, unique visitors, known bots, browser-
   like clients that never ran JavaScript, bot share and visitors online now.
 * **30-day chart** of humans and bots, rendered as inline SVG (no JavaScript chart
   library).
 * **Top pages** and **referrers** (source sites, full referring URLs without query
   strings, `utm_source` / `ref` campaign tags).
 * **Bot breakdown** by name and type: search engines, AI crawlers, SEO tools, social
   previews, monitoring services, security scanners and HTTP libraries.
 * **Pages read by AI crawlers** (GPTBot, ClaudeBot, PerplexityBot and others).
 * **Security reconnaissance** – failed logins, bot scans of the login page, XML-
   RPC requests, 404 requests from non-humans and requests for sensitive paths such
   as `.env`, `.git` or backup archives.
 * **Broken links** – 404 pages opened by real visitors, with the referring site.
 * **File downloads** – clicks by real visitors on links to PDF, ZIP and other files
   on your site.
 * **Dashboard widget** with today’s numbers.
 * **Flood guard** – aggressive scanners cannot fill your database.

#### Privacy

 * No cookies, no localStorage or sessionStorage, no fingerprinting scripts.
 * No external services: all data stays in your WordPress database.
 * Raw IP addresses are never stored. A visitor is counted with a truncated HMAC-
   SHA256 of IP address, user agent and date, keyed with a random salt that is replaced
   every day. The old salt is deleted, so visitors cannot be recognised across days
   and the hash cannot be reversed.
 * Query strings are removed from recorded paths and referrers.
 * The user agent of a confirmed human visit is erased; it is kept only for bots
   and unconfirmed requests.
 * Raw data is deleted automatically after 90 days.
 * Logged-in editors and administrators are not counted.

The plugin adds a suggested text to the privacy policy guide (Settings > Privacy).

## Screenshots

[⌊Overview: human views, unique visitors, bots and visitors online now, with the
daily humans-vs-bots chart.⌉⌊Overview: human views, unique visitors, bots and visitors
online now, with the daily humans-vs-bots chart.⌉[

Overview: human views, unique visitors, bots and visitors online now, with the daily
humans-vs-bots chart.

[⌊Top pages and external referrers, including UTM sources.⌉⌊Top pages and external
referrers, including UTM sources.⌉[

Top pages and external referrers, including UTM sources.

[⌊Bots by name and type, plus login/XML-RPC probes and suspicious 404 paths.⌉⌊Bots
by name and type, plus login/XML-RPC probes and suspicious 404 paths.⌉[

Bots by name and type, plus login/XML-RPC probes and suspicious 404 paths.

[⌊Dashboard widget with today's numbers.⌉⌊Dashboard widget with today's numbers.⌉[

Dashboard widget with today’s numbers.

## Installation

 1. Install the plugin from the Plugins screen, or upload the `ggsec-stats` folder 
    to `/wp-content/plugins/`.
 2. Activate **GGSEC Stats** on the Plugins screen.
 3. Open **Dashboard > GGSEC Stats** in the admin menu.

Optional settings in `wp-config.php`:

    ```
    define( 'GGSEC_STATS_RETENTION_DAYS', 90 ); - days raw hits are kept (default 90).

    define( 'GGSEC_STATS_DAILY_CLIENT_CAP', 500 ); - maximum recorded requests per client per day (default 500).
    ```

## FAQ

### Does it need a cookie banner?

The plugin does not set cookies and does not store data in the browser. Whether 
you need a consent banner depends on your whole site and your jurisdiction, so check
with your own legal advice.

### Does it work with page caching?

Hits are recorded when WordPress renders the page. If a full-page cache serves a
page without running WordPress, that view is not recorded.

### Why are my own visits not counted?

Logged-in users who can edit posts are excluded so the site owner and editors do
not distort the numbers.

### Why do bot numbers include browser user agents?

Many scanners pretend to be a browser. A request is counted as human only when the
browser confirms that the page was shown; requests that never confirm are listed
as “Bots without JS”.

### What happens on uninstall?

Deleting the plugin from the Plugins screen drops its database table and removes
its options and scheduled event.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“GGSEC Stats” is open source software. The following people have contributed to 
this plugin.

Contributors

 *   [ GGSEC ](https://profiles.wordpress.org/patapik/)

[Translate “GGSEC Stats” into your language.](https://translate.wordpress.org/projects/wp-plugins/ggsec-stats)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ggsec-stats/), check
out the [SVN repository](https://plugins.svn.wordpress.org/ggsec-stats/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/ggsec-stats/) by
[RSS](https://plugins.trac.wordpress.org/log/ggsec-stats/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.3.1

 * The statistics page moved from a top-level admin menu item to **Dashboard > GGSEC
   Stats**.

#### 1.3.0

 * Prepared for WordPress.org: readme.txt, GPLv2 license file, translatable admin
   strings, privacy policy text.
 * Hardened output escaping and request input sanitization.
 * Database queries use identifier placeholders.

#### 1.2.1

 * Sensitive path detection also matches names such as `site.sql.bak`.
 * Security recon card counts a request that is both a scanner hit and a sensitive
   path only once.

#### 1.2.0

 * File download tracking, AI crawler pages, security recon summary, broken links.

#### 1.1.0

 * Flood guard per client and day; own logins are no longer counted as probes.

#### 1.0.0

 * First release.

## Meta

 *  Version **1.3.1**
 *  Last updated **53 minutes ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.3 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [analytics](https://wordpress.org/plugins/tags/analytics/)[bots](https://wordpress.org/plugins/tags/bots/)
   [privacy](https://wordpress.org/plugins/tags/privacy/)[security](https://wordpress.org/plugins/tags/security/)
   [statistics](https://wordpress.org/plugins/tags/statistics/)
 *  [Advanced View](https://wordpress.org/plugins/ggsec-stats/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ggsec-stats/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ggsec-stats/reviews/)

## Contributors

 *   [ GGSEC ](https://profiles.wordpress.org/patapik/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ggsec-stats/)