What is Discordbot?
It visits a link when someone shares it in a Discord message, to build the preview card. Discord says it does not continuously scan or crawl websites.
Fetches a page when someone shares its link, to draw the preview card. Blocking it breaks your previews in that app.
Discord says to match only the word Discordbot, since the rest of the string may change. Its page does not mention robots.txt.
Discordbot user agent
Discord documents this user agent for Discordbot. Version numbers in it change over time, so match on the name, not the whole string.
Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)Should you block Discordbot?
Allow it. Blocking it breaks the preview card when someone shares your link.
How to block Discordbot in robots.txt
Discord documents no robots.txt token for Discordbot that we could confirm, so we don’t suggest one here. Block it at your server or firewall by user agent instead.
How to verify a request is really Discordbot
Anyone can send any user agent, so the string alone proves nothing.
Discord publishes the IP ranges Discordbot crawls from. A request that claims to be Discordbot from any other address is not Discordbot.
See when Discordbot reads your site
Bots don’t run JavaScript analytics, so a script tag never sees them. invisit records crawler reads on the server instead, through its server SDK or a Cloudflare Worker, and shows which bots read which pages, next to your visitors.
Checked against Discord’s own documentation on . Something changed? Write to help@invisit.dev.