Meta · Training & scraping
Meta-ExternalAgent robots.txt guide
Meta-ExternalAgent is Meta’s crawler for uses such as AI model training and product improvement. It is distinct from Meta’s user-triggered fetching agent.
Reviewed December 1, 2026 · Official documentation
Meta-ExternalAgent robots.txt rules
Add the chosen group to your site’s robots.txt. Review existing rules for this token first: repeated matching groups combine.
Block all paths
User-agent: Meta-ExternalAgent Disallow: /
Allow all paths
User-agent: Meta-ExternalAgent Allow: /
Restrict selected paths
User-agent: Meta-ExternalAgent Allow: / Disallow: /private/ Disallow: /api/
Test Meta-ExternalAgent access
Blocked/
Line 2 · Disallow: /
Specific User-agent: Meta-ExternalAgent
Site-wide policy: Blocked
What changes if you block Meta-ExternalAgent?
Google & Bing Search
This token does not control Googlebot or Bingbot. Blocking it is not a Google or Bing crawl restriction; keep your search crawler rules separate.
AI visibility & content use
Disallowing this token targets Meta-ExternalAgent’s crawl. It does not control every Meta agent or undo past collection; Meta-ExternalFetcher has a different role.
Identify genuine requests
- robots.txt token
- Meta-ExternalAgent
Use Meta’s official web crawler identification guidance. Check the documented verification steps for the specific agent, not just its claimed header.
User-Agent versions change. Use the operator’s current examples rather than treating a sample header as proof of identity.
Which robots.txt rule takes priority?
In this inspector, matching groups for Meta-ExternalAgent are combined. If a specific group exists, the wildcard group (User-agent: *) is not added. Without a specific group, the wildcard applies. With neither, access defaults to allowed.
For each path, the longest matching directive wins; Allow wins a tie. An empty Disallow does not block anything. A policy result describes the written rules, not proof that a crawler follows them.
Read RFC 9309Common questions about Meta-ExternalAgent
Is Meta-ExternalAgent the same as Meta-ExternalFetcher?
No. Meta distinguishes automated crawling from user-initiated fetching. Do not assume a rule for one token applies to the other.
Does this block Facebook link previews?
This rule names Meta-ExternalAgent, not every Meta crawler. Link preview fetching has separate agents and behavior; consult Meta’s documentation.
Does blocking Meta-ExternalAgent protect private pages?
No. robots.txt is public and voluntary. Use authentication, authorization, and appropriate server controls for private content; do not publish secret paths as a security measure.