← all guides

Identifying your crawler honestly with a contact header

Two ways to arrive at someone’s server

Every request your crawler sends carries a User-Agent header. Most scrapers fill it one of two ways. Either they send whatever the HTTP library defaults to, like python-requests/2.32 or curl/8.5, or they copy a desktop browser’s string so the traffic looks like a person browsing.

There’s a third option that gets much less attention: say who you are. Send something like AcmePriceBot/1.4 (+https://acme.example/bot; [email protected]). Name the crawler, give a version, and point to a page that explains what it does and how to reach the people running it.

This article makes the case for that third option on the jobs where it fits. It’s the opposite of the approach covered in our piece on why swapping user agents stopped working, which looked at how rotating browser strings fails as a disguise. Here the question is different. If you stop trying to look like someone else, what do you gain, what does it cost, and how do you do it well?

The short version is that site owners can do something reasonable with a named crawler. They can read about it, contact you, write a robots.txt rule for it, rate-limit it specifically, or allow it through. With anonymous or disguised traffic, their options shrink to tolerating it or blocking it, and blocking is usually broad. A named crawler gives them a way to say “slower” or “not this section” instead of “no”.

It won’t suit every job, and we’ll be honest about the ones where it’s awkward. But for a large share of legitimate crawling, being identifiable is the more durable choice, and it’s surprisingly little work.

What a descriptive user agent looks like

There’s a well-established convention for crawler user agents, and following it makes yours easy for humans and tools to read.

The core is a product token and a version: AcmePriceBot/1.4. The token is the name robots.txt rules will match against, so pick something distinctive and stable. It should be one word, without spaces, and ideally include “bot” or “crawler” so its nature is obvious. Don’t change it casually. Site owners who’ve written rules for AcmePriceBot won’t have rules for AcmeCrawler2 when you rename it.

Next comes a comment in parentheses with a URL, conventionally prefixed with a plus sign: (+https://acme.example/bot). That’s the address of your bot information page. Major search engine crawlers have used this pattern for years, which is why site owners and log analysis tools recognise it.

You can add a contact email in the same comment, separated by a semicolon. Some operators prefer to keep the email on the bot page only, to limit spam. Either is fine as long as the page makes contact easy.

Some crawlers that render pages with a real browser append their token to the browser’s own user agent string, so the site gets both the rendering engine’s details and the crawler’s identity. That’s a reasonable approach when a browser is genuinely involved. What matters is that your token and URL are present and easy to spot.

A few things to avoid. Don’t use another organisation’s bot name, like a search engine’s, to borrow its reputation. That’s impersonation, and large crawlers publish ways for sites to verify their traffic, so it’s easy to catch. Don’t put a URL that 404s. Don’t use a generic token like bot or crawler, which gives site owners nothing to match on. And don’t send a named user agent from some workers and a disguised one from others in the same job. Consistency is the whole point.

The bot information page

The URL in your user agent is only useful if the page behind it answers the questions a site owner has when they find your crawler in their logs. They’re usually a little annoyed, short of time, and deciding whether to block you. The page should make it easy for them to decide something better.

Say who operates the crawler. A company or project name, and a sentence about what you do.

Say what the crawler is for, specifically. “Collects publicly listed prices for consumer electronics to publish a weekly price index” is useful. “Gathers data from the web” isn’t.

Say what it collects and what it doesn’t. Which kinds of pages and fields, and a clear statement if you don’t collect personal data or don’t store page text.

Say how it behaves. Your default request rate per site, whether it respects robots.txt, which directives it honours, and whether it obeys Crawl-delay, which not every crawler does.

Say how to control it. The exact product token to use in robots.txt, with an example rule. How to ask for a lower rate or a full opt-out by email if they’d rather not touch robots.txt.

Say how to verify it. If your crawler runs from fixed addresses, publish them. If it doesn’t, because it uses rotating proxy exits for regional content, say that honestly, and give another way to confirm a request is yours.

Give a contact. A monitored email address, and a realistic response time.

Keep the page short, plain and current. A site owner should get everything they need in a minute.

The From header and other contact channels

The user agent isn’t the only place to put contact details. HTTP has a header designed for exactly this, and it’s underused.

The From header is defined in the HTTP specification as carrying an email address for the human user who controls the requesting agent. The specification specifically mentions robots as a use: a crawler can send From: [email protected] so that anyone having trouble with it knows who to contact. It’s been part of HTTP since the early days, and it’s cheap to add.

Some crawler operators send both: a descriptive user agent with a URL, and a From header with an email. That gives site owners two routes, and it means the contact survives even if something in the pipeline trims the user agent.

A few practical notes. Use a role address, like bot@ or crawler@, not a personal one, so the inbox survives staff changes and spam doesn’t land on one person. Make sure it’s monitored. An address that bounces or never replies is worse than none, because it tells the site owner you’re not serious. Filter it for spam, but don’t filter so hard that real complaints get lost.

Beyond headers, it helps to be findable in other ways. Put the bot page link somewhere on your main site, so someone searching your bot’s name finds it. If your organisation has a security or abuse contact, make sure the people behind it know the crawler exists and who owns it. Site owners sometimes go to those channels first.

None of this is complicated. It’s a few headers, one page and one inbox. The work is keeping them accurate as the crawler changes.

Why site owners handle named crawlers better

It’s worth understanding this from the site owner’s side, because it’s the heart of the argument.

When a site owner or their hosting team notices unusual traffic, they’re asking a few questions. Who is this? What do they want? Are they harming us? Can we make it stop, or at least make it smaller? With anonymous traffic, they often can’t answer the first two, so they default to protecting the site: block the addresses, block the ranges, turn on stricter bot protection. Those responses tend to be broad, and they often catch legitimate users too.

A named crawler answers the first two questions immediately. The site owner can read the bot page, see that it’s collecting public prices at a modest rate, and decide whether that’s fine. If it’s fine, they may do nothing, or even allow it past their bot protection. If the rate is a problem, they can email you or add a Crawl-delay or a disallow rule for your token. If they don’t want it at all, they can say so precisely.

That precision is the benefit. A site owner who can target a robots.txt rule at your bot doesn’t need to block a whole proxy provider’s address range, which would hurt other people too. A site owner who can email you can ask for a change instead of escalating to their bot protection vendor or their lawyer.

It also changes the tone of conflict when it happens. Someone who received an honest, identified request stream and asked you to stop is dealing with a counterparty. Someone who discovered a disguised crawler after the fact feels deceived, and that feeling shapes everything that follows, including any legal conversation.

None of this guarantees any particular site will welcome you. Some block all bots regardless. But the range of outcomes is better, and the bad outcomes are clearer and less costly.

Robots.txt only really works when you’re named

Robots.txt is the main tool site owners have for telling crawlers what they want, and it relies entirely on crawlers identifying themselves.

A robots.txt file is a set of groups, each starting with one or more User-agent lines, followed by rules. The current standard, RFC 9309, describes how a crawler matches its product token against those lines and which group applies. A site can have a generic group for all crawlers under User-agent: *, and specific groups for named crawlers with different rules.

If your crawler has no distinctive token, or claims to be a browser, the site can’t write rules for you specifically. They can only write rules for everyone, which usually means stricter rules than they’d give a well-behaved crawler they’d identified.

If your crawler is named, and you honour robots.txt properly, you give the site owner a precise lever. They might disallow a section they don’t want crawled, allow the rest, and ask for a slower rate. That’s a much better outcome for you than a blanket block.

Honouring it properly means a few things. Fetch robots.txt before crawling a site and refresh it regularly, since it changes. Parse it correctly, including which group applies to your token and how Allow and Disallow interact. Respect the rules for your token, and fall back to the * group when there isn’t one for you. If you’ve said on your bot page that you honour Crawl-delay, do so.

And test it. Write a small robots.txt with a rule for your token, serve it from a test site, and check that your crawler behaves as expected. It’s common for crawlers to claim compliance and quietly get the matching wrong.

What changes on your side

Identifying your crawler isn’t just a header. It commits you to a few things, and it’s worth being ready for them before you switch it on.

You become accountable. Your organisation’s name is on every request. If the crawler misbehaves, it’s your reputation, and the site owner knows exactly who to contact or complain about. That’s the point, but it means your crawler needs to be well behaved before it’s named, not after.

You have to honour what people ask. Robots.txt rules for your token, emailed requests to slow down or stop, and anything you promised on the bot page. A named crawler that ignores requests is worse than an anonymous one, because it’s deliberate.

You need to keep your rates reasonable. There’s no hiding a burst of traffic behind an anonymous string any more. That’s healthy. Pick default rates that a small site on modest hosting could live with, and adjust per site where you have reason to.

You need to answer email. Someone has to own the bot inbox, reply within the timeframe your page promises, and act on what’s asked. Keep a simple record of requests and what you did about them.

And you may lose some access. Some sites block all named bots on principle. Some will ask you to stop. That’s a real cost, and it’s worth accepting. A site that would block you if it knew who you were is a site whose data you were collecting without its consent, and that position tends to get worse over time, not better.

Rates and habits a named crawler can defend

Once your name is on the traffic, how the crawler behaves matters more, because every habit is attributable. A few habits are easy to adopt and easy to defend on your bot page.

Honour the signals servers send. A 429 Too Many Requests or a 503 Service Unavailable is the site telling you to back off. If the response includes a Retry-After header, wait at least that long before trying that site again. If it doesn’t, back off exponentially and slow your base rate for that host. A named crawler that keeps hammering after a 429 is making a very clear statement about itself.

Use conditional requests. If you’ve fetched a page before, send If-Modified-Since with the date you last saw, or If-None-Match with the ETag the server gave you. When nothing has changed, the server can reply with a short 304 Not Modified instead of the whole page. That’s less work for the site, less bandwidth for you, and it’s exactly what well-behaved crawlers are expected to do.

Start from the sitemap. Many sites publish sitemaps listing the pages they want found, often with last-modified dates. Crawling from the sitemap rather than following every link keeps you inside the part of the site the owner actually wants discovered, and the dates let you skip pages that haven’t changed.

Think about timing. A small site’s traffic usually peaks during its local daytime. Scheduling heavier crawls for its quieter hours spreads your load into a time the site can absorb it more easily. It costs you nothing.

Cap concurrency per host. One or two connections at a time to any single site is plenty for most crawling jobs. More parallelism belongs across many sites, not against one.

Write all of this on the bot page. “We honour Retry-After, use conditional requests, and keep to one request every few seconds per site by default” tells a site owner more than any amount of reassurance.

When it’s the right call

Identifying your crawler fits a lot of legitimate work. A few categories stand out.

Research and archiving. Academic projects, public-interest research and archiving efforts benefit enormously from being identifiable, and site owners are often happy to accommodate them when asked.

Public data aggregation. Price indices, job listing aggregators, event calendars, public records collection. Anything where the output is derived from public facts and the operator is willing to stand behind the use.

Monitoring your own or partners’ properties. Checking your own sites, your clients’ sites with their agreement, or partner sites under a data-sharing arrangement. Here, being identified makes coordination trivial, since the site owner can allow your bot through their protection.

Compliance and brand monitoring. Checking where your brand appears, whether resellers follow your pricing policy, or whether your content is being used, where you’re comfortable being seen doing it.

Search and discovery services. If you run any kind of search or discovery product, being a named crawler is the norm, and site owners expect it.

Any job you’d be happy to explain. That’s the simplest test. If you’d be comfortable writing a clear paragraph on a public bot page about what you’re doing and why, you should probably be named. If you wouldn’t, that’s worth reflecting on before you run the job at all.

When it’s harder

It would be dishonest to pretend identification fits every job without friction. Some legitimate work has a real tension with it.

The clearest case is when you need to see what an ordinary visitor sees. Price monitoring across regions, checking how search results or product listings appear to customers in a given country, testing that geo-targeted content is correct. Sites sometimes serve crawlers different content from humans, sometimes simplified pages, sometimes a cached version, sometimes nothing. A named crawler may get a different page than a customer would, which can undermine the purpose.

There are honest ways to handle that tension. Ask. Many sites will allow a named crawler to see the normal consumer page if you explain why, especially if you’re checking their own content for them. Get the data another way, through a partner feed, an affiliate data feed, or an official API that returns the same prices customers see. Accept the identified view, and note in your data that it’s what the site shows to named crawlers. Or decide that the job isn’t one you should run.

What this article won’t do is suggest disguising the crawler for those jobs. That’s the approach the rest of the site treats as the wrong one, and it’s where scraping tends to shade into the kind of evasion that breaches terms and damages relationships.

There’s also a practical middle case: a job that fetches public pages where identification wouldn’t change the content at all, but the operator is nervous about being seen. That nervousness is worth examining. If the job is legitimate and polite, being seen is usually fine. If it isn’t, the fix is the job, not the header.

Proxies and named crawlers together

It’s common to assume identification and proxies don’t go together, since proxies change your address. They combine fine, and it’s worth explaining how.

A proxy changes where your requests come from on the network. A named user agent says who is sending them. Those are independent. A crawler can use regional exits to fetch location-specific public pages and still announce itself honestly in every request. The site sees a named bot from an address in the right region, and your bot page explains why.

What proxies change is verification. Large search crawlers let sites confirm that a request claiming to be from them really is, typically by publishing their IP ranges or supporting reverse DNS lookups that resolve to their own domain. If your crawler uses fixed addresses, you can do the same: publish the list on your bot page. If it uses rotating residential or mobile exits, you can’t, because the addresses aren’t yours and change constantly.

Say so. Your bot page can explain that the crawler uses a proxy provider for regional access, so its addresses vary, and give another way to verify, like a contact who can confirm whether a given request with a given timestamp was yours from your logs. There’s also ongoing standards work on letting bots sign their requests cryptographically, so sites can verify them regardless of address. It’s worth watching, though it’s not yet something most sites check.

And never combine proxies with impersonation. Using a search engine’s bot name through rotating exits is exactly the pattern verification exists to catch, and it tells the site you meant to deceive them. It’s also the kind of use most proxy providers’ acceptable use policies forbid.

Checking what sites actually see from you

It’s surprisingly common for a crawler to be named in its config and anonymous on the wire. Worth checking before you tell anyone you’re identifiable.

Send a few requests through your full stack, including your proxies, to an endpoint that echoes back the headers it received. Several public services do this, or you can run a tiny one yourself. Look at the User-Agent and From headers exactly as they arrived. Proxies, gateways and some HTTP libraries can drop or rewrite headers, and you want to find out now.

Check every worker type. A job that uses a plain HTTP client for most pages and a browser for a few has two sources of user agent. The browser worker, by default, sends the browser’s own string, so your crawler is named on nine pages in ten and anonymous on the tenth. Set the browser’s user agent explicitly, or append your token to it, so both paths identify the same crawler.

Check redirects and retries. Some clients build a new request on redirect or retry, and custom headers don’t always carry over. Follow a redirect through the echo endpoint and confirm the headers survive.

Check robots.txt fetches. The request for robots.txt itself should carry your crawler’s name, since some site owners look at who fetched it.

Check your logs match. Your own request log should record the user agent you sent. If a site owner writes to ask about a specific request, you want to be able to find it and confirm it was yours.

Repeat the check whenever the stack changes: a new library version, a new proxy provider, a new worker type. It takes five minutes, and it’s the difference between being identifiable and believing you are.

Handling the email you’ll get

Once your crawler is named, you’ll get email. Most of it will be reasonable, and how you handle it decides whether identification pays off.

The common requests are predictable. Please slow down. Please don’t crawl this section. Please stop crawling our site. What is this bot and why are you collecting our data? Occasionally, a request to delete data you’ve already collected.

Have a short, polite reply ready for each, and a process for acting on it. For rate requests, lower the rate for that site immediately and confirm. For section requests, add a site-specific exclusion and suggest the robots.txt rule they could add so it’s permanent. For stop requests, stop and confirm. Then add the site to a permanent exclusion list your crawler checks, so it doesn’t restart when someone reruns the job next quarter. Deletion requests deserve the most care. Check what you hold and what you’re obliged to do, and get advice if personal data is involved.

Reply promptly, and reply as a person. A short, specific human answer goes a long way. “Thanks, we’ve reduced our rate on your site to one request every ten seconds as of today” is better than a paragraph of boilerplate.

Don’t argue. Even when you think the request is unreasonable, the right first move is usually to comply and discuss. You chose to be identifiable so that site owners could talk to you. Treat what they say as the feedback you asked for.

Keep a record. Who asked, what they asked, what you did, and when. It’s useful if a question comes up later, and it’s the kind of record that shows good faith.

A worked example

Here’s an illustrative example of how this plays out.

A small company runs a crawler that collects public event listings from local venue websites to build a regional events calendar. For its first months, it sent a generic library user agent, and a handful of venues blocked it, including two whose events the calendar most wanted.

The team switches to EventCalBot/1.0 (+https://eventcal.example/bot), adds a From header with a role address, and publishes a bot page. It says what the crawler collects (event titles, dates, times, venue and a link back, never full descriptions or images), how often it visits (once a day, a few pages per venue), that it honours robots.txt, and how to opt out.

Over the following weeks, a few venues email. One asks for a slower rate, and the team drops to weekly for that site. One asks to be removed, and the team adds it to the exclusion list and confirms. One asks whether the calendar could link to their ticketing page directly, and the team adds that. One of the venues that had blocked the old user agent notices the bot page, likes the idea, and unblocks it.

None of that required anything clever. It required a name, a page and an inbox someone answered.

What to do on Monday

If your crawler currently sends a library default or a borrowed browser string, here’s a way to switch.

Pick a distinctive product token that includes “bot” or “crawler”, and decide never to change it casually.

Write the bot information page. Cover who operates it and why it exists. Then say what it collects and what it doesn’t, the rates it keeps to and how it handles robots.txt, with an example rule. Finish with verification details, or an honest note that addresses vary, and a contact with a response time.

Set up a role email address and name the person who owns it.

Change the user agent to your token, version and bot page URL. Add a From header with the role address.

Check your robots.txt handling against a test file with a rule for your token.

Review default rates for every site the crawler touches, and lower any that a small site would struggle with.

Create an exclusion list the crawler checks before every run, and a short set of reply templates.

Switch it on, and read the inbox every day for the first few weeks.

None of this guarantees any site will welcome your crawler, and it doesn’t make a job acceptable that wasn’t. What it does is give the people running the sites you visit a way to talk to you, which is worth more over time than any disguise.

If you’re setting up compliant crawling and want to understand how proxies fit into an identified, polite crawler, Proxy Scraping covers the practical side, along with the rest of the guides.

Get new guides and videos first — join the Telegram channel.

proxies
Need proxies that survive the block wall?

Singapore Mobile Proxy runs real 4G/5G mobile IPs on rotating SIMs — the carrier-grade addresses most of these targets still trust.

see plans →
read on
More scraping guides

The rest of the field manual: target-site playbooks, library walkthroughs, provider reviews, and anti-bot troubleshooting.

browse all guides →