How Discord Crawls Your Pages

Understanding Discordbot and how it fetches link embeds

Discordbot

When someone pastes a URL in a Discord channel, Discordbot fetches the page to build an embed. Its user agent:

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

Discordbot does not run JavaScript. OG tags must be in the server-rendered HTML.

Response requirements

Discordbot needs a 200 OK with Content-Type: text/html. It follows redirects, but enforces a 5-second timeout, so if your server is slower than that, the URL shows up as plain text with no embed.

JavaScript-rendered tags

If your meta tags are injected client-side, Discordbot won’t see them. You need SSR, pre-rendering, or static meta tags in your HTML template.

robots.txt

Discordbot respects robots.txt. If it’s blocked, no embed gets generated.

User-agent: Discordbot
Allow: /

Testing access

curl -A "Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)" https://example.com/your-page

If your <meta> tags appear in the response and it comes back within 5 seconds, you’re good.