How to verify AI crawler traffic in server logs using published IP ranges
Major AI crawlers such as GPTBot, OAI-SearchBot, ChatGPT-User, and PerplexityBot appear frequently in access logs, but user agent strings can be easily faked. The companies behind these crawlers publish the IP ranges they use as JSON files, which makes verification possible. The article describes a DNS-based check that Google documents for Googlebot, though the author opts for the simpler JSON list for batch processing. It then presents a standard-library Python script that parses combined-format logs, identifies requests claiming to be known crawlers, and compares client IPs against each crawler's published ranges. The author tested the script on a small handwritten sample log.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in