(block_ai_bots) {
	@ai_bots {
		header_regexp user-agent (?i)(anthropic-ai|claudebot|claude-web|claude-searchbot|gptbot|chatgpt-user|google-extended|ccbot|perplexitybot|imagesiftbot)
	}
	abort @ai_bots
}
Then put this as an import block_ai_bots.