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 Rule | Documented Value | Source |
|---|---|---|
| User-agent token | Twitterbot | X Developer Cards Documentation (Twitterbot)Checked November 25, 2026 |
| Primary job | X Card & OpenGraph preview rendering | X Developer Cards Documentation (Twitterbot)Checked November 25, 2026 |
| Robots.txt compliance | Honors robots.txt | X 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.
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
- X Developer Cards Documentation (Twitterbot)November 25, 2026
- RFC 9309: Robots Exclusion ProtocolNovember 25, 2026