Headcount changelog
What changed in each release of Headcount, newest first.
1.2.1
Fixed
- Suggested NGINX rules no longer block a whole language site. On a multisite install with
sites at addresses like
/fr, missing pages under/frcould produce a rule for/fritself, because an entry's URI doesn't include its site's prefix. Each site's address is now protected, and so is each asset container's. - File-type rules leave out types your site serves. A
.yamlfile inpublic/or a.keyfile in an asset container keeps that type out of the rules, so a publicopenapi.yamlor a Keynote download isn't blocked. - No rules are suggested if the site can't be checked. If entries, terms, asset containers or
routes can't be loaded, the Missing pages tab still lists the paths but suggests no rule, and
headcount:nginx-rulesstops with an error. Before, the rules were worked out without that protection.
1.2.0
Added
- Dark mode. The utility and the dashboard widget follow the Control Panel into dark mode,
with cards in the same greys as Statamic's own panels, rather than staying as white panels on
a dark page. They use Statamic's theme colours, so a custom Control Panel theme carries
through. Like the hover tooltips, this comes from the addon's stylesheet, which Statamic
publishes when it runs
statamic:install.
1.1.0
Added
- Filter the daily chart by type of traffic or by bot. The chart's legend is now a quick filter (All, Humans, Suspected bots or Bots), and a search box beside it reaches every type of bot (search engines, AI crawlers, SEO tools and the rest) and every bot by name, such as GPTBot. The search box is Statamic's own combobox, so it looks like the rest of the Control Panel, and picking from it updates the report straight away. A cross on its pill goes back to all traffic. What's picked is scaled to fill the chart, and the period buttons keep it.
- Tabs. Overview (who requested your pages and the daily chart), Traffic (each type of traffic), Top pages (what AI crawlers and humans read), Bots (every bot by name) and Missing pages, at the top, instead of one long page. The open tab is in the URL, so it can be linked to and stays open when the period changes, and missing pages are only worked out when their tab is opened.
- Numbers on hover. Each segment of the daily chart and the share bar shows its own count
and share as soon as it's hovered, in the utility and the dashboard widget. The tooltips come
from a small plain-CSS stylesheet, the addon's first, which Statamic publishes to
public/vendor/statamic-headcountwhen it runsstatamic:installafter Composer. Until it's published, the browser's own tooltip shows the same numbers after a pause. - Missing pages bots asked for. The utility lists paths that returned 404 or 410 to anything
but a person, which is exactly what's still getting past the web server's own blocks, and
suggests NGINX rules to stop them reaching PHP: first path segments (
/wp-admin,/.env), file types a Statamic site never serves (.sql,.bak), and script files other than/index.php. Nothing that belongs to an entry, term, route or public file is ever suggested, and a missing page under a real section is flagged as a possible old URL to redirect instead. Hidden files inpublic/, such as a Mac's.DS_Store, don't count as part of the site. The tab leads with the rules to add to NGINX, then what each one blocks, with the paths left unblocked, and why, folded away below. headcount:nginx-rulesprints the same rules in the terminal.
Changed
- "Admin probes" is the new, shorter name for requests for
.env,wp-login.phpand the other probe paths, which were "Probes for secrets and admin pages". Days counted under the old name are reported under the new one. - New colours. Slate blue for humans, coral for suspected bots and teal for bots, with a gap between the segments of the share bar.
1.0.0
Added
- Tools → Utilities → Headcount. Bots vs Humans: the share of page requests from humans, suspected bots and bots over 7, 30 or 90 days, per day and by type of traffic, with every bot by name, the pages AI crawlers read most and the pages people read most.
- Two sources. A middleware that records each front-end request after the response is sent
(the default, no setup), or the web server's access log (
HEADCOUNT_SOURCE=log), read incrementally every ten minutes and followed through logrotate. - A list of more than 100 bots, sorted into search engines, AI crawlers, SEO tools, link previews, uptime monitors, testing tools, scripts and vulnerability scanners.
- Fake bot detection. Bots claiming to be from Google, Bing, Apple, OpenAI or Perplexity are checked against the IP ranges those operators publish, downloaded weekly.
- Suspected bots. Clients with a browser's user agent that don't send a browser's headers (middleware) or fetch the page's assets (access log) are counted apart from people.
- Probe detection. Requests for
.env,wp-login.phpand other files a Statamic site doesn't have count as vulnerability scanners. - Dashboard widget (
headcount), shown only to users who can see the utility. - Commands:
headcount:report,:aggregate,:import(including whole.gzfiles once),:rangesand:prune, scheduled automatically. - Privacy by design. No IP addresses, cookies or query strings are stored. Visitors are a daily-salted hash, and the hashes are deleted once each day is finished.