Social & link unfurlerHonors robots.txt

Twitterbot (X (Twitter))

X's link preview crawler reads OpenGraph and twitter:card tags whenever a URL is shared on X so posts display a title, description and cover image.

Verified · Operator: X (Twitter)

Documented Facts For Twitterbot

Metric or RuleDocumented ValueSource
User-agent tokenTwitterbotX Developer Cards Documentation (Twitterbot)Checked November 25, 2026
Primary jobX Card & OpenGraph preview renderingX Developer Cards Documentation (Twitterbot)Checked November 25, 2026
Robots.txt complianceHonors robots.txtX Developer Cards Documentation (Twitterbot)Checked November 25, 2026

What X (Twitter) Documents

X documents that Twitterbot respects robots.txt rules; blocking Twitterbot stops X Cards from rendering for your domain.

Propagation window: Fetches on demand when a URL is shared or refreshed.

Verification: Check User-agent Twitterbot in access logs per X developer documentation.

If You Allow Twitterbot

Displays your custom OpenGraph cover image and headline whenever anyone posts your URL on X.

If You Block Twitterbot

Removes rich link preview cards on X, reducing click-through on shared links.

Robots.txt Rules For Twitterbot

Block Twitterbot

User-agent: Twitterbot
Disallow: /

Place in /robots.txt at the root of each hostname you want to protect.

Allow Twitterbot (Keeping /admin/ Private)

User-agent: Twitterbot
Allow: /
Disallow: /admin/

Per RFC 9309, a named group overrides User-agent: *, so repeat private paths inside it.

Enforcement Note
Explicitly allow Twitterbot on public pages and /opengraph-image routes.

Frequently Asked Questions

Why isn't my OpenGraph image showing on X?
Check that robots.txt and your firewall allow Twitterbot to fetch both the page URL and its opengraph-image PNG.
Does Twitterbot obey robots.txt?
Yes, X's card documentation explicitly notes that Twitterbot respects robots.txt.
Is Twitterbot an AI training crawler?
No, Twitterbot is X's card preview fetcher.

Primary Sources

Verified

Related Research Guides