Crawler authentication, explained

Demo article · 5 min read

A license that nobody checks is a polite request. To turn RSL terms into something enforceable, the server needs a way to tell a licensed crawler from an unlicensed one on every single request. That's the job of the Crawler Authentication Protocol, or CAP.

The token

When a crawler obtains a license via the Open Licensing Protocol (OLP), it receives a signed token. The token says who the crawler is, what it's licensed for, and which content it applies to. The crawler presents it on each request:

Authorization: License <token>

The check

On the publisher's side, CAP verification asks a few simple questions:

If the answer to all of them is yes, the request goes through to the origin as normal. If not, the crawler gets a clear error telling it why.

What about crawlers with no token?

Requests from known AI crawlers that don't present a token at all can be handled according to policy. In OBSERVE mode they're allowed through and logged. In ENFORCE mode they're turned away and pointed at the license. Ordinary visitors in browsers aren't affected either way.

What CAP doesn't do

CAP authenticates crawlers that choose to identify themselves. It isn't a full bot-management system, and it won't on its own catch a scraper pretending to be a browser. It's designed to work alongside whatever bot protection you already have.