Bots by company
X bots and crawlers
X (formerly Twitter) runs the X social network.
X bots at a glance
- X runs 1 bot listed in this directory.
- They belong to: Social and Messaging Previews.
- Each X bot has its own robots.txt token, so each purpose can be allowed or blocked separately.
- Website: x.com
Every X bot
| Bot | Group | Purpose | robots.txt | For GEO |
|---|---|---|---|---|
| Twitterbot | Social and Messaging Previews | Link previewReported | Yes | Allow |
Block or allow all X bots
The rules below name every X token in this directory. To block training but keep AI search, delete the search and assistant tokens from the block rule.
robots.txt: block
# Block all X bots
User-agent: Twitterbot
Disallow: /robots.txt: allow
# Allow all X bots
User-agent: Twitterbot
Allow: /robots.txt: partial
# Keep all X bots out of private areas only
User-agent: Twitterbot
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
Allow: /Nginx
# Nginx: return 403 to all X bots
if ($http_user_agent ~* "(Twitterbot)") {
return 403;
}Apache
# Apache .htaccess: return 403 to all X bots
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (Twitterbot) [NC]
RewriteRule .* - [F,L]Cloudflare WAF
# Cloudflare > Security > WAF > Custom rule, action: Block
(http.user_agent contains "Twitterbot")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.