Skip to content
Keyhole

KeyholeBot

KeyholeBot is the scanner behind Keyhole. It checks a website for publicly visible security problems, like leaked API keys or an exposed .env file, at the request of someone who confirmed they own the site or are allowed to test it.

How to recognise it

Every request carries this User-Agent:

KeyholeBot/1.0 (+https://keyholescan.com/bot; passive exposure check requested by the site owner)

What it requests

  • robots.txt, first
  • The page it was asked to scan, and the JavaScript files that page loads from your own domain
  • Source maps referenced by those files, and a few .map files next to them
  • /.env and /.git/HEAD, reading only the first bytes, to see whether they are publicly downloadable
  • One made-up URL, to see what your error page reveals
  • Only for owners who proved control of the domain (DNS record, meta tag or file): a dozen more well-known paths and header-only checks of their own Supabase or Firebase rules

What it never does

  • Log in, guess passwords or submit forms
  • Send injection or exploit payloads
  • Write, change or delete anything: it only uses GET and HEAD
  • Download database contents or keep the keys it finds

How much traffic

  • At most 45 requests per quick scan and 120 per deep scan, 3 to 4 at a time with a pause between them
  • One scan of a given site at a time, and at most 12 requested scans of a site per hour across all Keyhole users
  • If your server answers 429 or 503, KeyholeBot waits for Retry-After and drops every optional request

How to opt out

Name KeyholeBot in robots.txt and disallow everything. KeyholeBot reads robots.txt before anything else and stops the scan right there:

User-agent: KeyholeBot
Disallow: /

Good to know

A blanket "User-agent: *" rule only limits which well-known files KeyholeBot checks, because staging sites often block all crawlers while their owners still want a scan. To stop scans completely, use the KeyholeBot rule above.

Report abuse

If someone scanned your site without your permission, write to abuse@keyholescan.com with the date and your domain. Scanning sites you don't own breaks our acceptable use policy, and we block accounts that do it.