Skip to content

reveata bots

View as Markdown

Forward crawler and AI agent requests from an nginx or Apache access log to your bot traffic report.

On this page

Most crawlers and AI agents never run JavaScript, so the tracking script can't see them. reveata bots forward reads your web server's access log and sends the crawler requests to your bot traffic report. For other ways to send them, see Forward crawler requests.

It uses the website's bot request token (dt_bot_…, in Settings → General → Bot traffic), not an API token, so you don't need to sign in first. Rate limits are waited out.

reveata bots report shows what was recorded: requests per category (search, AI assistants, AI training), the top crawlers and pages, against the previous period. reveata bots rules prints the allow and block rules per crawler as robots.txt lines. Both need analytics:read (site keys have it).

reveata bots report

Search, AI assistant and AI training crawler requests.

Requests forwarded from your server (see reveata bots forward) over --range: 24h, 7d, 30d (default) or 90d.

Options:

  • --site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)
  • --range <range>: 24h, 7d, 30d (default) or 90d

Calls GET /api/v1/websites/{website}/bots (analytics:read).

bash
reveata bots report --site example.com
reveata bots report --site example.com --range 7d --json

reveata bots rules

Allow and block rules per crawler, as robots.txt.

Options:

  • --site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)

Calls GET /api/v1/websites/{website}/bots/rules (analytics:read).

bash
reveata bots rules --site example.com

reveata bots forward [logfile]

Send crawler requests from an access log (nginx/Apache combined format).

Reads the log file (or standard input when no file or "-" is given), keeps requests whose User-Agent looks like a crawler or AI agent from the last 7 days, and sends them in batches of 100 to POST /api/collect/bots with the website’s bot request token (Settings → General → Bot traffic). Only the path without its query string, the status code, the User-Agent and the time are sent, never IP addresses. Reveata stores the crawlers it recognises and skips the rest. Pass --hostname when the website has several domains.

Options:

bash
reveata bots forward /var/log/nginx/access.log --bot-token dt_bot_…
zcat access.log.2.gz | REVEATA_BOT_TOKEN=dt_bot_… reveata bots forward --hostname www.example.com

Was this helpful?