Skip to content
measure

What is Meta-ExternalAgent? Meta's AI crawler and how to control it

Meta-ExternalAgent crawls the web to train Meta's AI models. Here is what it does, how it differs from Meta's four other crawlers, and which ones ignore robots.txt.

Guides5 min readBy Measure team

Meta-ExternalAgent is Meta’s crawler for AI training and indexing. Meta says it “crawls the web for use cases such as training foundation AI models or improving products by indexing content directly,” and you control it with the meta-externalagent token in robots.txt.

It’s one of five Meta crawlers, and they don’t all follow the same rules. This guide sticks to Meta’s own crawler page: what each one does, which ones respect robots.txt, and how to see them in your analytics.

What is Meta-ExternalAgent?

The crawler Meta uses to collect web content for training its foundation AI models and for indexing content directly into its products. In Meta’s words, it “crawls the web for use cases such as training foundation AI models or improving products by indexing content directly.”

It’s not the crawler that builds link previews on Facebook, and it’s not the one that fetches a page when someone asks Meta AI to. Those are separate agents, below.

What does the Meta-ExternalAgent user agent look like?

Meta says the string in your logs “will be similar to one of the following”:

Code
meta-externalagent/1.1 (+/documentation/sharing/webmasters/web-crawlers)
meta-externalagent/1.1

The second form carries nothing but the name and version, so match on meta-externalagent rather than the full string.

What are Meta’s other crawlers?

Meta lists five on one page.

Table: Meta’s crawlers, per Meta’s documentation

CrawlerWhat Meta says it doesrobots.txt
meta-externalagentTraining foundation AI models, or indexing content directlyFollows it
meta-webindexerImproving Meta AI search results; allowing it “helps us cite and link to your content in Meta AI’s responses”Follows it
meta-externaladsImproving advertising and other business-related productsFollows it
meta-externalfetcherFetching individual links at a user’s request, including helping AI complete tasks“May bypass robots.txt rules”
facebookexternalhitBuilding link previews (title, description, thumbnail) when a link is shared on Facebook, Instagram or Messenger“Might bypass robots.txt” for security or integrity checks

The short version:

  • Meta-ExternalAgent is about training.
  • Meta-WebIndexer is about being cited in Meta AI’s answers.
  • Meta-ExternalFetcher is a person, right now, asking Meta AI for something that needs your page.
  • FacebookExternalHit is someone sharing your link.

How do I block Meta-ExternalAgent in robots.txt?

Meta says: “In order to block these crawlers, add a disallow for the relevant crawler to robots.txt.” To keep it off the whole site:

robots.txt
User-agent: meta-externalagent
Disallow: /

To opt out of training but stay citable in Meta AI and keep link previews working, give each agent its own group:

robots.txt
User-agent: meta-externalagent
Disallow: /

User-agent: meta-webindexer
Allow: /

Under the robots.txt standard, RFC 9309, no matching rule means allowed, so the Allow: / isn’t strictly needed. It makes the intent clear to the next person who reads the file.

Two details from Meta’s page:

  • Changes take up to a day. Meta says to “allow up to 24 hours for changes to robots.txt to take effect because crawlers may cache the contents of robots.txt for up to 24 hours.”
  • Meta prefers robots.txt to NoAI tags. It says it uses “industry-standard practices like robots.txt rather than non-standard formats like NoAI tags.” Its page doesn’t say it honors noai meta tags, so don’t count on them.

No. Link previews come from FacebookExternalHit, which has its own user agent. Blocking meta-externalagent leaves it alone.

Meta lists requirements for previews to work: your server “must use gzip and deflate encodings,” Open Graph properties must appear in the first 1 MB, and the page has to load “within a few seconds.” If a preview is stale, Meta’s Sharing Debugger forces a fresh crawl.

Does Meta-ExternalFetcher respect robots.txt?

Not always. Meta says it “fetches individual links at a user’s request” and “may bypass robots.txt rules,” because “it performs fetches that were requested by the user.”

If you need to stop those fetches, robots.txt isn’t the tool. That’s a job for your server or edge.

How do I see Meta-ExternalAgent visits in Measure?

Measure counts humans, AI agents and bots separately. The Measure classifier names Meta-ExternalAgent as an AI agent, run by Meta, with the purpose training, and Meta-ExternalFetcher as an AI agent with the purpose assistant. Neither counts as a human visitor.

If your request count jumps and your visitors don’t, why did my website traffic spike? walks through checking it.

If you use an AI assistant, ask it. Measure’s MCP server has a get_agents tool that returns every AI agent that fetched your site, with its operator, purpose, request count and top page. Ask “how many pages did Meta-ExternalAgent fetch this week?” and you get the real number.

For the other big AI crawlers, see GPTBot, ClaudeBot, Amazonbot and good bots vs bad bots.

FAQ

What is Meta-ExternalAgent?

Meta’s crawler for training foundation AI models and indexing content directly into its products. It’s controlled by the meta-externalagent token in robots.txt.

Is Meta-ExternalAgent used to train Llama?

Meta’s page says it’s used for “training foundation AI models.” It doesn’t name a specific model.

Does Meta-ExternalAgent respect robots.txt?

Meta documents a robots.txt opt-out for it and says changes can take up to 24 hours. The crawlers Meta says may bypass robots.txt are Meta-ExternalFetcher and, for security checks, FacebookExternalHit.

Will blocking Meta-ExternalAgent remove me from Meta AI?

Meta’s page lists a separate crawler, Meta-WebIndexer, for Meta AI search results and citations. Blocking Meta-ExternalAgent doesn’t block it.

Will Measure count Meta-ExternalAgent as a visitor?

No. Measure counts it as an AI agent run by Meta, apart from your human visitors.

See who’s reading your site

Measure shows you the humans, the AI agents and the bots on your site, each counted on its own, with no cookies and no consent banner. It’s $29 a month for up to 40 sites, with a 14-day trial. Start a trial or see pricing.

Let your agent read the numbers.

$29 a month covers 40 sites, then $0.50 a site. 14-day trial.