Slackbot-LinkExpanding
What is Slackbot-LinkExpanding?
Slackbot-LinkExpanding is a web crawler operated by Slack (now part of Salesforce) that fetches metadata from URLs shared in Slack conversations. When users share links in Slack channels, direct messages, or integrations, this crawler visits those URLs to extract information like titles, descriptions, and images to create rich link previews. The crawler identifies itself in server logs with the user agent string Slackbot-LinkExpanding 1.0 (+https://api.slack.com/robots)
.
This specialized crawler operates differently from general search engine bots—it only activates when a link is shared in Slack and doesn't index content for search purposes. Slack introduced this functionality as part of their platform's core features to enhance communication by providing visual context for shared links.
Slackbot-LinkExpanding has several distinctive characteristics: it's a stateless, single-request agent that doesn't maintain session cookies or execute JavaScript. It's designed to be lightweight and efficient, prioritizing speed and reliability over rendering fidelity. The crawler primarily looks for Open Graph Protocol (OGP) metadata tags in your website's HTML to generate these previews.
Why is Slackbot-LinkExpanding crawling my site?
If you're seeing Slackbot-LinkExpanding in your server logs, it means someone has shared a link to your website in a Slack conversation. The crawler visits your site to gather the information needed to create a preview card for that shared link.
This crawler only visits your site when triggered by a user sharing your URL—it doesn't proactively crawl or index websites. The frequency of visits directly correlates with how often your website links are shared in Slack conversations. For popular websites, this could mean multiple visits daily, while less frequently shared sites might see occasional visits.
Each visit is typically a single request to the shared URL, with a cooldown period of approximately one hour if the same URL is reshared in the same channel. This helps prevent redundant requests and reduces server load.
These crawling activities are considered authorized as they're part of standard web functionality—similar to how social media platforms generate previews when users share links.
What is the purpose of Slackbot-LinkExpanding?
The primary purpose of Slackbot-LinkExpanding is to enhance communication in Slack by providing visual context for shared links. Rather than displaying plain URLs, Slack shows rich previews with titles, descriptions, and images extracted from the linked webpage.
This service improves user experience by:
- Making conversations more visually engaging
- Providing immediate context about shared links without requiring users to click through
- Helping users quickly identify the content of shared resources
- Streamlining communication by reducing the need for manual descriptions of shared links
For website owners, these previews can actually benefit your content's visibility and engagement when shared on Slack. Well-crafted metadata tags ensure your content is presented accurately and attractively when users share your links.
How do I block Slackbot-LinkExpanding?
While Slackbot-LinkExpanding provides value to Slack users, you may have reasons to control its access to your site. The crawler respects standard robots.txt directives, making it straightforward to manage its behavior.
To block Slackbot-LinkExpanding from your entire site, add these lines to your robots.txt file:
User-agent: Slackbot-LinkExpanding
Disallow: /
For more selective blocking, you can restrict access to specific directories:
User-agent: Slackbot-LinkExpanding
Disallow: /private/
Disallow: /members-only/
Keep in mind that blocking this crawler will affect how your content appears when shared in Slack. Instead of rich previews with images and descriptions, users will see only basic link information. This might reduce the visual appeal and context of your content when shared on the platform.
If you're concerned about server load but still want link previews to work, consider implementing efficient caching mechanisms or optimizing your metadata tags rather than blocking the crawler entirely. This approach maintains the benefits of rich previews while minimizing resource usage.
Operated by
Data fetcher
Documentation
Go to docsAI model training
Acts on behalf of user
Obeys directives
User Agent
Slackbot-LinkExpanding 1.0 (+https://api.slack.com/robots)