Scrivio Interview library
LeadershipPrincipal6 min read · updated 13 November 2026

A company runs a large crawler to build search and analytics datasets. Site owners increasingly block unknown crawlers, some ask to be left out of AI training data, and the legal team worries about terms of service, copyright and personal data.

As the senior technical leader, how do you set crawling policy and strategy so the dataset stays useful while the company remains a welcome and lawful visitor?

I would make the crawler a welcome, identifiable visitor: always honour robots.txt and crawl delays, use a clear user agent with a contact page and published IP ranges, and never evade blocks. Site owners get control through separate user-agent tokens for search indexing and for training use, fast opt-out handling and respect for page-level directives. The fetch budget goes to value and freshness, judged by downstream usefulness; where crawling is blocked or risky we look at licensed data, partnerships and open datasets; and governance with legal and privacy covers retention, removals, personal data and an audit trail.

Why this question is asked

For years a crawler's main policy question was how fast it could go. Today the hard questions are about permission and trust: site owners block unknown bots, some object specifically to their content training AI models, and lawyers ask about terms of service, copyright and personal data. Interviewers ask a senior leader this to see whether we treat policy as part of the system design rather than an afterthought, because a crawler that loses the trust of site owners loses its data. In this answer, we will see why policy decides the dataset's future, define how to be a good visitor, give site owners real control, spend the budget on value, consider alternatives to crawling, and set up governance.

1Why Policy Decides the Dataset's Future

A crawler depends on the goodwill of millions of site owners it will never meet. Each one can block it with one line in robots.txt or a firewall rule, and many large sites now block any crawler they do not recognise or trust. Every evasive trick, a disguised user agent, rotating IP addresses, ignoring an opt-out, might win some pages this month and cost the whole crawler its reputation for years.

So the strategic goal is not maximum pages but a dataset that stays useful and lawful over time. That reframes the decisions: being identifiable, honouring wishes and spending the budget on what matters are investments in long-term access.

2Being a Welcome, Identifiable Visitor

The baseline rules are simple and non-negotiable. We always honour robots.txt, including disallowed paths and crawl delays, and we cache it for no longer than a day so changes take effect quickly. We identify ourselves with a clear user agent string that names the company and links to a page explaining what the crawler does, how to contact us and how to opt out. We publish the IP ranges we crawl from, so site owners can verify that a request claiming to be our crawler really is ours.

And we never bypass blocks: no rotating identities, residential proxies or headless browsers dressed up as people to get around a refusal. If a site blocks us, that is an answer, and the right response is to contact the owner or go without. This rule must be written down and enforced in code review, because the temptation appears every time an important site blocks the crawler.

3Giving Site Owners Real Control

Many site owners are happy to appear in search results but do not want their content used to train AI models. If we crawl for both with one user agent, they can only say yes to both or no to both, and many will say no. So we publish separate user-agent tokens: one for search indexing and one for training use. An owner can allow the first and disallow the second in robots.txt, and our pipelines must check the right token's rules before using a page for each purpose.

We also handle opt-outs quickly, within days, including removing already-crawled content from training sets where the policy promises it, and we respect page-level directives such as robots meta tags and X-Robots-Tag headers like noindex. Several large crawler operators have moved to separate tokens for training, so owners increasingly expect it.

Step throughMay this page be used for training?
  1. Fetch allowed for the crawler token?robots.txt, crawl delay
    YesFetch and storeNoDo not fetch
  2. Page directives allow use?robots meta, X-Robots-Tag
    YesContinueNoIndex only or discard
  3. Training token allowed by the site?separate token in robots.txt
    YesEligible for training setsNoSearch use only
  4. Owner opted out later?handled within days
    YesRemove from future training setsNoKeep

4 steps in order. Play them, or step through them one at a time.

4Spending the Fetch Budget on Value

Polite crawling has a fixed budget, so the strategy is where to spend it. I would put it on freshness for pages that change and matter, such as news, documentation and product pages, and on coverage of important new sites, rather than on re-fetching static pages or chasing infinite URL spaces.

Success should be judged by downstream usefulness: search result quality, the share of queries answered with fresh content, or the measured improvement of models trained on the data, not by the number of pages fetched. A crawl of 5 billion carefully chosen pages can beat 50 billion fetched blindly, and it costs site owners far less load.

5When Crawling Is Not the Right Tool

Some valuable sources block crawlers, have terms that forbid automated access, or contain content whose use is legally risky. For those, the honest alternatives are licensed data from publishers, partnerships where a site provides a feed or an API in exchange for something it values, such as attribution, traffic or payment, and open crawl datasets published by non-profit projects, used under their own terms. These cost money or effort, but they come with permission, which is worth more than pages taken against an owner's wishes.

Ways to get the data
SourceCostPermissionBest for
Own crawlerinfrastructure and teamrobots.txt and terms per sitebroad, fresh web coverage
Licensed datalicence feesexplicit contracthigh-value publishers, archives
Partnerships and feedsnegotiation, shared valueexplicit agreementlarge sites that block crawlers
Open crawl datasetsprocessing onlydataset termshistorical and bulk coverage

6Governance With Legal and Privacy Teams

Finally, crawl policy needs owners outside engineering. Together with legal and privacy teams, we set retention limits for raw pages, so we do not keep everything forever; a process for removal requests, from site owners and from individuals whose personal data appears in pages; rules for handling personal data, such as filtering obvious identifiers before training use and respecting regional privacy laws; and an audit trail of crawl policy decisions, so that when a regulator, journalist or site owner asks why a page was used, we can show which rules applied on that date.

A small policy group that meets regularly, with a written policy, published crawler documentation and metrics on opt-outs and removal response times, turns these from good intentions into a working system.

7Follow-up questions

What if competitors ignore robots.txt and get more data?

They may get more pages in the short term, but they also get blocked, sued or named publicly, and their access shrinks. Our advantage is durable access and data we can defend. I would rather spend the difference on licences for the sources that matter most.

How do you handle a site that changes its robots.txt to block training after we crawled it?

We honour the new rules for future crawls immediately and apply our published policy to data already collected, which for an opt-out from training means excluding it from future training sets. Recording the robots.txt state at fetch time in the audit trail makes this possible.

Is honouring robots.txt a legal requirement?

It depends on jurisdiction and context, and the law here is changing, so the legal team decides what is required. As a matter of policy, I would treat it as mandatory regardless, because it is the standard way owners express their wishes.

8Conclusion

In this answer, we treated crawl policy as part of the design. We made the crawler a welcome visitor that honours robots.txt and delays, identifies itself with a clear user agent, contact page and published IP ranges, and never evades blocks. We gave site owners control with separate tokens for search and training, fast opt-outs and respect for page directives, spent the fetch budget on freshness and important coverage judged by downstream usefulness, used licensed data, partnerships and open datasets where crawling is blocked or risky, and set governance with legal and privacy teams for retention, removals, personal data and an audit trail.

What to say in the interviewAbout 80 seconds aloud

Open with

I would start from the fact that the crawler depends on site owners' goodwill, so being trusted is the strategy. We always honour robots.txt and crawl delays, identify the crawler with a clear user agent and a contact page, publish our IP ranges so owners can verify us, and never bypass blocks or rotate identities to evade them.

Then, if they want more

Then I would give owners real control: separate user-agent tokens for search indexing and for training use, so an owner can allow search but refuse training, fast handling of opt-outs, and respect for page-level directives like noindex.

On strategy, I would spend the fetch budget on value, freshness for pages that change and matter and coverage of important new sites, and judge success by downstream usefulness, like search quality or model improvement, rather than page counts. Where crawling is blocked or legally risky, I would consider licensed data, partnerships and open crawl datasets instead.

And I would set governance with legal and privacy: retention limits for raw pages, a process for removal requests, rules for personal data, and an audit trail of crawl policy decisions, with metrics on opt-outs and response times so the policy is actually enforced.

About this answer

Last updated
13 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "As the senior technical leader, how do you set crawling policy and strategy so the...": https://scrivio-interview-library.netlify.app/architecture/system-design-problems/8d1c199431/