Published on 2025-08-07T06:18:08Z
Discordbot
Discordbot is the official web fetcher for the Discord communication platform. Its purpose is to generate the rich link previews that appear when a user shares a URL in a Discord chat. It is not a general-purpose crawler; it only visits a specific page when its link is shared by a user. For website owners, these previews can significantly increase user engagement and click-through rates for content shared on Discord.
What is Discordbot?
Discordbot is a specialized web fetcher operated by the popular communication platform Discord. Its function is to collect metadata to generate link previews when users share URLs in Discord channels. The bot identifies itself in server logs with the user-agent string Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)
. It is a lightweight metadata retriever that does not execute JavaScript or CSS. Instead, it focuses on parsing HTML meta tags, especially Open Graph tags, to create informative and visually appealing previews for shared links.
Why is Discordbot crawling my site?
Discordbot is visiting your website because a Discord user has shared a link to one of your pages in a chat. It operates on-demand, meaning it is not continuously crawling your site but is triggered only by this user action. The bot seeks basic metadata like titles, descriptions, and image URLs to generate a rich embed, or preview, for the shared link. The frequency of visits is directly tied to how often your content is shared on the Discord platform. This is a legitimate and standard function for a social platform.
What is the purpose of Discordbot?
The primary purpose of Discordbot is to improve the user experience on Discord by transforming plain URLs into rich, visual previews. When a link is shared, the bot fetches metadata to display a preview card with the page title, description, and a featured image. This benefits both users, who get immediate context about a link, and website owners. For site owners, these enhanced previews can significantly boost engagement and click-through rates—by some estimates, up to 40-60%—compared to plain text links, while also reinforcing brand identity when content is shared.
How do I block Discordbot?
If you wish to prevent Discord from generating link previews for your site, you can block Discordbot using your robots.txt
file. Note that this will result in links to your site appearing as plain text URLs without any preview.
To block Discordbot, add the following lines to your robots.txt
file:
User-agent: Discordbot
Disallow: /
How to verify the authenticity of the user-agent operated by Discord?
Reverse IP lookup technique
host
linux command two times with the IP address of the requester.-
This command returns the reverse lookup hostname (e.g., 4.4.8.8.in-addr.arpa.).> host IPAddressOfRequest
-
> host ReverseDNSFromTheOutputOfFirstRequest