AI Search External user agent
Key Takeaways
- AI Search External: Fetches and indexes external-domain content reached by AI Search discovery when configured to follow links beyond the customer account.
- AI Search External uses the operator-documented robots.txt token Cloudflare-AI-Search-External.
- AI Search External has operator-documented robots.txt support; review the scope and exceptions before relying on a rule.
Operated by Cloudflare
AI Search External: Fetches and indexes external-domain content reached by AI Search discovery when configured to follow links beyond the customer account.
What identifies AI Search External?
| Identifier | Cloudflare-AI-Search-External |
|---|---|
| Identity type | Operator-documented crawler or fetcher |
| Evidence for this identity | Operator documentation linked below |
| robots.txt policy | Yes |
What is AI Search External?
AI Search External: Fetches and indexes external-domain content reached by AI Search discovery when configured to follow links beyond the customer account.
The operator documentation linked below describes this service. Use the documented identity to investigate requests, and verify the sending infrastructure separately: a User-Agent header can be copied by another client.
Discover mode skips pages disallowed by robots.txt. It declares search and ai-input purposes; a no signal for either rejects the crawl. Source.
- Discover mode skips pages disallowed by robots.txt. It declares search and ai-input purposes; a no signal for either rejects the crawl.
Should you block AI Search External?
Choose whether to allow AI Search External based on its documented purpose, the service you use and the load it places on your website.
| Effect on search rankings | An AI search crawler is distinct from a conventional search engine crawler; check any documented shared roles. |
|---|---|
| Effect on AI visibility | Restricting access can limit future retrieval or discovery in that service. Citations and removal of already indexed content are not guaranteed. |
| Follows robots.txt | Yes |
| Recommendation | Your choice |
How to decide whether to allow AI Search External
Start with the operator documentation linked in this profile. Check the source.
- AI search: If discovery in the associated AI product matters, test access to public pages you want it to find. Access alone does not guarantee inclusion or citations.
- Access policy: Check the paths and hosts covered by the published or reported policy. A robots.txt rule is not an access control.
- What to check in logs: Look for
Cloudflare-AI-Search-External, then compare the paths, response codes and request volume before and after your change. Use the token as a starting point in logs. This profile does not list an IP range or reverse DNS method, so the user agent alone is insufficient to verify the operator.
How do you block or allow AI Search External?
Put the robots.txt rule in the file at the root of every domain and subdomain, for example https://example.com/robots.txt. The token Cloudflare-AI-Search-External is matched case-insensitively.
robots.txt: block
# Block AI Search External
User-agent: Cloudflare-AI-Search-External
Disallow: /robots.txt: allow
# Allow AI Search External
User-agent: Cloudflare-AI-Search-External
Allow: /robots.txt: partial
# Keep AI Search External out of private areas only
User-agent: Cloudflare-AI-Search-External
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
Allow: /Nginx
# Nginx: return 403 to AI Search External
if ($http_user_agent ~* "(Cloudflare\-AI\-Search\-External)") {
return 403;
}Apache
# Apache .htaccess: return 403 to AI Search External
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (Cloudflare\-AI\-Search\-External) [NC]
RewriteRule .* - [F,L]Cloudflare WAF
# Cloudflare > Security > WAF > Custom rule, action: Block
(http.user_agent contains "Cloudflare-AI-Search-External")How can you verify AI Search External traffic?
No IP list or reverse-DNS method for AI Search External is linked in this profile. The header alone cannot authenticate the sender. Anyone can send the same string. Rate-limit unusual volume instead of trusting the name.
How do you find AI Search External in server logs?
Search the web server access log for the literal identifier. The command below counts candidate Cloudflare-AI-Search-External requests per URL on Nginx or Apache.
grep -iF -- 'Cloudflare-AI-Search-External' access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -20For a full report per AI bot, upload the log to the AI Log File Analyzer, a free tool by Justin Hà.
AI Search External FAQ
AI Search External uses the robots.txt token "Cloudflare-AI-Search-External". No full user-agent sample is recorded in this profile. Treat a token match as a candidate identity, not authentication.
Cloudflare states that AI Search External follows robots.txt rules. Check the documented scope and any exceptions on this profile.
An AI search crawler is distinct from a conventional search engine crawler; check any documented shared roles. Restricting access can limit future retrieval or discovery in that service. Citations and removal of already indexed content are not guaranteed.
Add two lines to the robots.txt file at the root of each domain and subdomain: "User-agent: Cloudflare-AI-Search-External" followed by "Disallow: /". The token is case-insensitive. Operator fetch schedules and caching policy determine when a change is applied; check subsequent requests.
Not reliably. Cloudflare verification is not established by the links recorded for AI Search External. Anyone can send the same user-agent string; investigate source addresses and request behavior before trusting it.
Search your server access log for "Cloudflare-AI-Search-External", for example with: grep -i "Cloudflare-AI-Search-External" access.log. The AI Log File Analyzer by Justin Hà counts visits per AI bot from an uploaded log file.
Sources: Cloudflare crawler documentation. Content updated by Justin Hà.
See which of these bots actually reach your website
The AI Log File Analyzer by Justin Hà counts visits from GPTBot, ClaudeBot, PerplexityBot and other AI crawlers in your server log, for free. The GEO Technical Package sets up robots.txt, llms.txt and crawler access for AI search.