M

Mastodon

social-preview Mastodon

Mastodon social network web crawler bot

About this crawler

Mastodon is a web crawler identified by the regular-expression pattern Mastodon in the User-Agent request header. It is categorised as social-preview. Use the regex above to detect, log, allow, or block Mastodon traffic in your web server, CDN edge rules, or robots.txt.

Block-rate · top 25k sites

0.065%
latest snapshot
2026-06-04
matched key: Mastodon
2026-05-012026-06-040.11%

Technical details

Name
Mastodon
Pattern
Mastodon
Tags
social-preview
Added
2017/11/02
Instances
1 known sample(s)

Sample User-Agent strings

http.rb/2.2.2 (Mastodon/1.5.1; +https://example-masto-instance.org/)

Block this crawler

robots.txt — disallow Mastodon:

User-agent: Mastodon Disallow: /

Apache .htaccess — return 403:

RewriteEngine On RewriteCond %{HTTP_USER_AGENT} Mastodon [NC] RewriteRule .* - [F,L]

Nginx — return 403 inside a server block:

if ($http_user_agent ~* "Mastodon") { return 403; }
← back to all crawlers