Writing a user-agent string that passes review

Last checked November 22, 2026.

A good crawler user agent has three parts: a unique bot name, a version number, and a link to a page about your bot. For example: ExampleBot/1.0 (+https://example.com/bot). Verification services reject generic user agents, because they can't be matched to one operator (Cloudflare).

What gets rejected

Cloudflare's verification rejects generic user-agent patterns and may stop you submitting until you fix yours. Its examples of generic patterns include (Cloudflare):

These name the software, not the operator. Thousands of different bots send python-requests.

The three parts

PartExampleWhy
Bot nameExampleBotUnique to you, so a site can match one rule to one operator
Version/1.0Lets you and sites tell releases apart
Info link(+https://example.com/bot)Where a site owner learns what the bot does and how to block it

Put the link in parentheses with a +, the convention major crawlers use.

Good examples

ExampleBot/1.0 (+https://example.com/bot)
ExampleMonitor/2.3 (+https://example.com/monitor; uptime checks)
ExampleSEOBot/1.4 (+https://example.com/seobot)

Rules of thumb

A user agent isn't proof

Anyone can copy your user agent. That's why verification pairs it with something that can't be faked: a Web Bot Auth signature, or addresses that are provably yours through a published IP list or reverse DNS. The user agent says who you claim to be; the signature or addresses prove it.

Code: setting it in Python

import requests

session = requests.Session()
session.headers["User-Agent"] = "ExampleBot/1.0 (+https://example.com/bot)"
r = session.get("https://example.com/", timeout=10)

PacketPaper's planned Bot ID plan includes a hosted public bot page for your user agent to link to, along with your key directory and applications. It's planned, not live yet. Join the waitlist.