Ads and Platform Fetchers

Cloudflare Prefetch user agent

Key Takeaways

  • Cloudflare Prefetch: Warms the cache by fetching resources selected through the customer-enabled Prefetch URLs manifest workflow.
  • Cloudflare Prefetch uses the operator-documented robots.txt token CloudFlare-Prefetch.
  • Cloudflare Prefetch has no verified robots.txt commitment in this profile; protect private content with authentication.

Operated by Cloudflare

Product featureOfficial docs Your choice

Cloudflare Prefetch: Warms the cache by fetching resources selected through the customer-enabled Prefetch URLs manifest workflow.

What identifies Cloudflare Prefetch?

IdentifierCloudFlare-Prefetch
Identity typeOperator-documented crawler or fetcher
Evidence for this identityOperator documentation linked below
robots.txt policyNot documented
Recorded User-Agent sampleMozilla/5.0 (compatible; CloudFlare-Prefetch/0.1; +http://www.cloudflare.com/)

What is Cloudflare Prefetch?

Cloudflare Prefetch: Warms the cache by fetching resources selected through the customer-enabled Prefetch URLs manifest workflow.

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.

Retain the documented CloudFlare capitalization. Source.

No explicit robots.txt behavior for this named service was found in the opened operator documentation. Source.

  • Retain the documented CloudFlare capitalization.
  • No explicit robots.txt behavior for this named service was found in the opened operator documentation.

Should you block Cloudflare Prefetch?

Choose whether to allow Cloudflare Prefetch based on its documented purpose, the service you use and the load it places on your website.

Effect on search rankingsA platform fetcher serves its documented integration; do not infer an organic ranking effect from the user-agent name.
Effect on AI visibilityBlocking may interrupt a dependent feature. Test the specific service instead of assuming a universal AI effect.
Follows robots.txtNot documented
RecommendationYour choice

How to decide whether to allow Cloudflare Prefetch

Start with the operator documentation linked in this profile. Check the source.

  • Product feature: Identify whether each bot checks ads, reads feeds, verifies ownership or powers another integration. If a service is in use, validate a representative landing page or feed before and after changing access.
  • Access policy: The sources reviewed here do not establish robots.txt behaviour. Measure the result of a rule change before relying on it.
  • What to check in logs: Look for CloudFlare-Prefetch, 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 Cloudflare Prefetch?

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-Prefetch is matched case-insensitively. robots.txt alone may not stop Cloudflare Prefetch, so add the Nginx, Apache or Cloudflare rule as well.

robots.txt: block

# Block Cloudflare Prefetch
User-agent: CloudFlare-Prefetch
Disallow: /

robots.txt: allow

# Allow Cloudflare Prefetch
User-agent: CloudFlare-Prefetch
Allow: /

robots.txt: partial

# Keep Cloudflare Prefetch out of private areas only
User-agent: CloudFlare-Prefetch
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
Allow: /

Nginx

# Nginx: return 403 to Cloudflare Prefetch
if ($http_user_agent ~* "(CloudFlare\-Prefetch)") {
    return 403;
}

Apache

# Apache .htaccess: return 403 to Cloudflare Prefetch
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (CloudFlare\-Prefetch) [NC]
RewriteRule .* - [F,L]

Cloudflare WAF

# Cloudflare > Security > WAF > Custom rule, action: Block
(http.user_agent contains "CloudFlare-Prefetch")

How can you verify Cloudflare Prefetch traffic?

No IP list or reverse-DNS method for Cloudflare Prefetch 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 Cloudflare Prefetch in server logs?

Search the web server access log for the literal identifier. The command below counts candidate CloudFlare-Prefetch requests per URL on Nginx or Apache.

grep -iF -- 'CloudFlare-Prefetch' access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -20

For a full report per AI bot, upload the log to the AI Log File Analyzer, a free tool by Justin Hà.

What user-agent string does Cloudflare Prefetch use?

A user-agent sample recorded in the cited source for Cloudflare Prefetch. Version numbers such as Chrome/W.X.Y.Z change over time, so match the token, not the whole string.

Mozilla/5.0 (compatible; CloudFlare-Prefetch/0.1; +http://www.cloudflare.com/)

Cloudflare Prefetch FAQ

Cloudflare Prefetch identifies itself with the robots.txt token "CloudFlare-Prefetch". A typical request header reads: Mozilla/5.0 (compatible; CloudFlare-Prefetch/0.1; +http://www.cloudflare.com/)

A robots.txt policy for Cloudflare Prefetch has not been established in the sources reviewed for this profile. Treat a robots rule as advisory and use server access controls when necessary.

A platform fetcher serves its documented integration; do not infer an organic ranking effect from the user-agent name. Blocking may interrupt a dependent feature. Test the specific service instead of assuming a universal AI effect.

Add two lines to the robots.txt file at the root of each domain and subdomain: "User-agent: CloudFlare-Prefetch" 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 Cloudflare Prefetch. Anyone can send the same user-agent string; investigate source addresses and request behavior before trusting it.

Search your server access log for "CloudFlare-Prefetch", for example with: grep -i "CloudFlare-Prefetch" 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.

Zalo logo Chat Zalo WhatsApp logo Chat WhatsApp