Allowing GPTBot, ClaudeBot, and PerplexityBot in robots.txt without letting aggressive scrapers melt your origin server
We want our public engineering blogs and Q&A threads to show up in Google AI Overviews, ChatGPT Search, Claude, and Perplexity, so we updated robots.txt to allow Googlebot, OAI-SearchBot, PerplexityBot, and ClaudeBot.
Within 48 hours, crawler traffic jumped sharply and our FastAPI + Postgres backend hit 95% CPU because bots were crawling thousands of old paginated query URLs (?sort=top&page=14&tag=...) that bypassed our CDN cache.
How are teams keeping legitimate search and AI citation bots unblocked while stopping crawler bursts from hitting the database?