PureStats documentation

Bot and spam filtering

Reduce automated traffic noise with user-agent, IP and rate-limit heuristics.

PureStats filters invalid domains before storing events. Bot and spam filtering handles the next problem: automated traffic on valid domains.

Signals

Filtering can use:

  • Known bot and command-line client user agents.
  • Missing or very short user agents and headless-browser markers.
  • High request rates from one IP address for the site.
  • Injection-style payloads and implausible viewport sizes.
  • AI crawler user agents, such as GPTBot, ClaudeBot or PerplexityBot. This relies on the user agent the crawler declares; PureStats does not verify that claim.
  • IP address signatures.

Site setting

In Site settings → Privacy settings → Traffic filtering, choose a Bot filter mode (Off, Standard detection or Strict detection), and choose whether to Exclude bot traffic from reports and Exclude AI crawler traffic. New sites start with bot filtering off, so their reports open in All traffic; with filtering on, reports open in Human traffic. Excluded hits stay stored and visible in their own traffic mode.

Traffic modes

The dashboard traffic selector can show:

  • Human traffic.
  • All traffic.
  • Bots.
  • AI crawlers.
  • Spam.
  • Suspicious.

Use All traffic when verifying the tracker or investigating why a visit was excluded.

False positives

No heuristic is perfect. If legitimate traffic is filtered, inspect the event metadata, user agent, path and rate. Site owners can change the bot filter mode and the two exclusion options, but not the detection rules. Switching to Strict detection affects only new hits.

Best practices

  • Avoid tracking staging domains as production traffic.
  • Use path exclusions for private pages.
  • Turn on bot filtering once tracking works, so reports open in Human traffic.