The reverse DNS method
Take the fetching IP from your server or WAF logs and run a PTR lookup on it.
A genuine OpenAI fetch resolves inside the openai.com space, Anthropic inside anthropic.com, Perplexity inside perplexity.ai, and Common Crawl inside commoncrawl.org.
For defense in depth, forward-confirm the result: resolve the returned hostname back to an IP and check it matches the original visitor. This is FCrDNS, the same standard email verification uses. Run it hands-on with the Reverse IP Lookup (PTR), which resolves an IP to its hostname and forward-confirms the pair.
Where crawlers publish their ranges
OpenAI publishes its IP ranges publicly, so you can allow-list or match by range instead of by single lookup.
Anthropic and Perplexity document verification by reverse DNS on their help pages.
Common Crawl and Google both resolve cleanly; Google-Extended is the exception, because it is a training control rather than a crawler and never appears in logs.
The exception that proves the rule
Bytespider reverse DNS is inconsistent, which is why the recommendation for that crawler is edge-level blocking by autonomous system rather than token matching.
Any crawler whose verification is unreliable should be handled at the WAF, not in robots.txt.
Frequently asked questions
Why is reverse DNS better than the user-agent string?+
User-agent strings are trivial to spoof; a reverse DNS lookup ties the visitor to infrastructure the operator actually controls.
What is FCrDNS?+
Forward-confirmed reverse DNS: the PTR hostname is resolved back to an IP and must match the original visitor. It closes the loop on hostname spoofing.
Do any AI crawlers publish IP ranges?+
Yes, OpenAI publishes its ranges. Others are verified by reverse DNS on the documented domain.
Related: AI log analyzer, all AI crawlers, AI crawler checker, does blocking AI crawlers hurt SEO.