Discordbot user agent
Operated by Discord
Discordbot is the fetcher Discord uses to build embeds when a link is posted in a Discord chat.
The Discordbot bot at a glance
- Discordbot is operated by Discord and reads page titles, descriptions and images to build link previews.
- The robots.txt token for Discordbot is Discordbot.
- Blocking a social preview bot has no effect on search rankings.
- Discordbot robots.txt support: Not documented.
- Recommendation for Generative Engine Optimization (GEO): Allow.
What is Discordbot?
Discordbot reads Open Graph and oEmbed tags of a shared page to show its title, description and image in the chat.
Discord has not published a crawler page for it.
Should you block Discordbot?
Allow Discordbot unless it causes a measurable load problem.
| Effect on search rankings | Blocking a social preview bot has no effect on search rankings. |
|---|---|
| Effect on AI visibility | No direct effect on AI answers, but shared links lose their title, image and description, which usually lowers clicks from social and chat apps. |
| Follows robots.txt | Not documented |
| Recommendation | Allow |
How to block or allow Discordbot
Put the robots.txt rule in the file at the root of every domain and subdomain, for example https://example.com/robots.txt. The token Discordbot is matched case-insensitively. robots.txt alone may not stop Discordbot, so add the Nginx, Apache or Cloudflare rule as well.
robots.txt: block
# Block Discordbot
User-agent: Discordbot
Disallow: /robots.txt: allow
# Allow Discordbot
User-agent: Discordbot
Allow: /robots.txt: partial
# Keep Discordbot out of private areas only
User-agent: Discordbot
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
Allow: /Nginx
# Nginx: return 403 to Discordbot
if ($http_user_agent ~* "(Discordbot)") {
return 403;
}Apache
# Apache .htaccess: return 403 to Discordbot
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (Discordbot) [NC]
RewriteRule .* - [F,L]Cloudflare WAF
# Cloudflare > Security > WAF > Custom rule, action: Block
(http.user_agent contains "Discordbot")How to verify real Discordbot traffic
Discord publishes no IP list or reverse DNS pattern for Discordbot, so the user agent cannot be verified. Anyone can send the same string. Rate-limit unusual volume instead of trusting the name.
How to find Discordbot in your server logs
Search the web server access log for the token. The command below counts Discordbot requests per URL on Nginx or Apache.
grep -i "Discordbot" access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -20For a full report per AI bot, upload the log to the AI Log File Analyzer, a free tool by Justin Hà.
Discordbot user agent string
The full user agent Discord publishes for Discordbot. Version numbers such as Chrome/W.X.Y.Z change over time, so match the token, not the whole string.
Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)Discordbot FAQ
Discordbot identifies itself with the robots.txt token "Discordbot". A typical request header reads: Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)
Discord has not documented how Discordbot treats robots.txt. Add a robots.txt rule and back it with a server rule if the traffic matters to you.
Blocking a social preview bot has no effect on search rankings. No direct effect on AI answers, but shared links lose their title, image and description, which usually lowers clicks from social and chat apps.
Add two lines to the robots.txt file at the root of each domain and subdomain: "User-agent: Discordbot" followed by "Disallow: /". The token is case-insensitive. Changes can take up to 24 hours to be picked up.
Not reliably. Discord publishes no IP list or reverse DNS pattern for Discordbot, so anyone can send the same user agent. Rate-limit unusual volume instead of trusting the name.
Search your server access log for "Discordbot", for example with: grep -i "Discordbot" access.log. The AI Log File Analyzer by Justin Hà counts visits per AI bot from an uploaded log file.
Sources: Public bot registry. Last reviewed by Justin Hà.
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.