Log in
Sign up with Google

Social preview bot · Discord

Discordbot is Discord’s social preview bot

Discordbot is Discord's link preview fetcher. It visits pages that users share in Discord to build preview cards.

Verifiable operator

Our take

Allow

Discordbot only fetches shared links to build previews, which helps your links stand out in Discord.

User agent

Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)

01 · Operator

Who operates Discordbot

Company
Discord
Official docs
support.discord.com

02 · Behavior

What Discordbot does

When a link is shared in Discord, the bot loads the page to read its title, description and image. It does not crawl sites on its own. For images and videos, Discord may cache a copy and serve it through its own servers.

03 · Impact

Why Discordbot matters for your site

If you allow it

  • Links shared in Discord show a rich preview
  • It fetches only links that users share

If you block it

  • You do not want previews of your pages on Discord
  • You want to reduce media requests from chat platforms

04 · Allow

How to allow Discordbot

robots.txt

User-agent: Discordbot
Allow: /

Cloudflare

# Security › WAF › Custom rules › Create rule
Expression: (http.user_agent contains "Discordbot")
Action:     Skip › All Super Bot Fight Mode rules

# Also check Security › Bots: "Block AI bots" can block it regardless of robots.txt.

WordPress

# WordPress serves a virtual robots.txt. Edit it with your SEO plugin:
# Yoast: SEO › Tools › File editor · Rank Math: General Settings › Edit robots.txt
User-agent: Discordbot
Allow: /

nginx

# nginx serves every user agent by default.
# Make sure no rule like this blocks it:
# if ($http_user_agent ~* "Discordbot") { return 403; }

Apache

# Apache serves every user agent by default.
# Make sure .htaccess has no rule like this:
# RewriteCond %{HTTP_USER_AGENT} Discordbot [NC]
# RewriteRule .* - [F,L]

05 · Block

How to block Discordbot

Start with robots.txt. If Discordbot keeps showing up in your logs, block it at your CDN or web server.

robots.txt

User-agent: Discordbot
Disallow: /

Cloudflare

# Security › WAF › Custom rules › Create rule
Expression: (http.user_agent contains "Discordbot")
Action:     Block

WordPress

# WordPress serves a virtual robots.txt. Edit it with your SEO plugin:
# Yoast: SEO › Tools › File editor · Rank Math: General Settings › Edit robots.txt
User-agent: Discordbot
Disallow: /

nginx

# In your server { } block:
if ($http_user_agent ~* "Discordbot") {
    return 403;
}

Apache

# .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Discordbot [NC]
RewriteRule .* - [F,L]
</IfModule>

06 · User agents

User agents we see for Discordbot

The user agent published by the operator:

Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)

07 · Verification

Is it really Discordbot?

Anyone can copy a user agent. Real Discordbot requests come from the IP ranges published at cdn.discordapp.com/ipranges/discord.json.

FAQ

Questions about Discordbot

How do I verify that a request is really from Discordbot?

Check the source IP against Discord's published ranges at cdn.discordapp.com/ipranges/discord.json. Discord says the user agent alone can be spoofed.

Does Discordbot crawl my whole website?

No. Discord states the bot visits a page only when someone shares its link in Discord.

Why do my images load from Discord's servers?

Discord may cache images and videos from shared links. It then serves them through its own servers to load faster and hide viewer IP addresses.

Last reviewed Oct 7, 2026

Your site

See which pages Discordbot crawls on your website

Log Hero reads your server logs and shows every AI bot, every page, every day.

Sign up with Google

Free during early access