Skip to content

Link preview bot

What is Discordbot?

Discordbot is the bot Discord uses to visit a shared link and build its preview.

Link previewNot documentedIP list
Operator
Discord
Purpose
Link preview. Builds the preview card when someone shares your link in a chat or social app.
robots.txt token
Discordbot
Sample user agent
Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)User agents change with versions. Match on the token, not the full string.
Follows robots.txt
Not documented by the operator. Discord's article does not mention robots.txt. It says the bot only visits links shared in messages.
How to verify
Check the IP against Discord's published list.
Last reviewed

Allow or block Discordbot

Block Discordbot
User-agent: Discordbot
Disallow: /

Asks Discordbot not to crawl any page. Well-behaved crawlers stop; it does not stop anyone who ignores robots.txt.

Allow Discordbot
User-agent: Discordbot
Allow: /

Lets Discordbot crawl everything. You only need this if a broader rule would otherwise block it.

Should you block it?

Blocking Discordbot breaks the preview card when someone shares your link on Discord.

Write a full policy with the AI Crawler Policy Generator

How to verify a Discordbot request

  1. Find the IP address of the request in your server or CDN logs.
  2. Get Discord's published list (Discord IP list).
  3. Check whether the IP falls inside one of the ranges. If it doesn't, the request is not from Discordbot, whatever its user agent says.

Questions about Discordbot

Is Discordbot safe to allow?

Discordbot reads public pages; it does not log in or submit forms. Whether to allow it depends on whether you want Discord's product to use your pages.

How do I know a request is really Discordbot?

Check the request against what Discord publishes: Check the IP against Discord's published list. The user agent alone proves nothing.

How often does Discordbot visit?

It depends on your site; Discord doesn't publish a schedule. Referscope shows the real visits.

Less guessing. Clearer growth.

Connect your site today and see your first verified AI crawler by tomorrow.