- Run by
- Discord
- Type
- Link preview bot
- Visits
- When a person does something that needs your page
- robots.txt
- Not documented
- Documentation
- Discord's page
What Discordbot does
Discordbot fetches a URL when it is posted in a Discord chat and reads the page's Open Graph, oEmbed and Twitter Card tags to build the embed. Discord's documentation doesn't mention robots.txt.
- Discord caches previews for about 30 minutes; a new query string forces a fresh fetch. Source
- Discord doesn't run JavaScript, so tags added by scripts are never seen. Source
- The whole fetch, images included, must finish within 10 seconds and at most 5 redirects. Source
Does Discordbot follow robots.txt?
Discord doesn't say whether Discordbot follows robots.txt.
How to stop Discordbot
Discord documents no robots.txt name. To stop previews, block its user agent on your server; Discord needs a 2xx response to build an embed.
What blocking Discordbot changes
Links to your site appear in Discord without an embed.
Where to see Discordbot visits
Most bots never appear in Google Analytics. Many don't run JavaScript, so the analytics tag never loads, and Google Analytics 4 automatically excludes traffic from known bots and spiders. Your server or CDN logs record every request with its user agent, so search them for the bot's name.
OneLence recognizes Discordbot and keeps it out of your visitor counts. With Premium, bot traffic shows which bots visit your site, how often and what kind they are.
Frequently asked questions
What is Discordbot?
Discordbot fetches a URL when it is posted in a Discord chat and reads the page's Open Graph, oEmbed and Twitter Card tags to build the embed. Discord's documentation doesn't mention robots.txt.
How do I block Discordbot?
Discord documents no robots.txt name. To stop previews, block its user agent on your server; Discord needs a 2xx response to build an embed.
What happens if I block Discordbot?
Links to your site appear in Discord without an embed.
Why doesn't Discordbot show up in Google Analytics?
Most bots never appear in Google Analytics. Many don't run JavaScript, so the analytics tag never loads, and Google Analytics 4 automatically excludes traffic from known bots and spiders. Your server or CDN logs record every request with its user agent, so search them for the bot's name.
