Social and Messaging Previews

MicrosoftPreview user agent

Operated by Microsoft

Link previewOfficial docs Allow

MicrosoftPreview is the Microsoft fetcher that generates page snapshots and previews for Microsoft products.

What identifies MicrosoftPreview?

  • MicrosoftPreview is operated by Microsoft and reads page titles, descriptions and images to build link previews.
  • The robots.txt token for MicrosoftPreview is MicrosoftPreview.
  • A social-preview fetch is distinct from search-engine indexing.
  • MicrosoftPreview robots.txt support: Yes.
  • Recommendation for Generative Engine Optimization (GEO): Allow.

What is MicrosoftPreview?

MicrosoftPreview has desktop and mobile variants and creates page snapshots used across Microsoft products.

Bing documents it on the same page as Bingbot.

Should you block MicrosoftPreview?

Consider allowing MicrosoftPreview when you use the associated service; verify identity, access requirements and server load first.

Effect on search rankingsA social-preview fetch is distinct from search-engine indexing.
Effect on AI visibilityBlocking may affect future previews. Existing caches, metadata errors and image access can also affect the result.
Follows robots.txtYes
RecommendationAllow

How to decide whether to allow MicrosoftPreview

Start with the operator documentation linked in this profile. Check the source.

  • Link preview: If shared links matter, test a public page in the associated app and check its title, image and description. A preview is not evidence of search indexing.
  • Access policy: Check the paths and hosts covered by the published or reported policy. A robots.txt rule is not an access control.
  • What to check in logs: Look for MicrosoftPreview, then compare the paths, response codes and request volume before and after your change. Use the token as a starting point in logs. This profile does not list an IP range or reverse DNS method, so the user agent alone is insufficient to verify the operator.

How do you block or allow MicrosoftPreview?

Put the robots.txt rule in the file at the root of every domain and subdomain, for example https://example.com/robots.txt. The token MicrosoftPreview is matched case-insensitively.

robots.txt: block

# Block MicrosoftPreview
User-agent: MicrosoftPreview
Disallow: /

robots.txt: allow

# Allow MicrosoftPreview
User-agent: MicrosoftPreview
Allow: /

robots.txt: partial

# Keep MicrosoftPreview out of private areas only
User-agent: MicrosoftPreview
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
Allow: /

Nginx

# Nginx: return 403 to MicrosoftPreview
if ($http_user_agent ~* "(MicrosoftPreview)") {
    return 403;
}

Apache

# Apache .htaccess: return 403 to MicrosoftPreview
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (MicrosoftPreview) [NC]
RewriteRule .* - [F,L]

Cloudflare WAF

# Cloudflare > Security > WAF > Custom rule, action: Block
(http.user_agent contains "MicrosoftPreview")

How can you verify MicrosoftPreview traffic?

No IP list or reverse-DNS method for MicrosoftPreview is linked in this profile. The header alone cannot authenticate the sender. Anyone can send the same string. Rate-limit unusual volume instead of trusting the name.

How do you find MicrosoftPreview in server logs?

Search the web server access log for the literal identifier. The command below counts candidate MicrosoftPreview requests per URL on Nginx or Apache.

grep -iF -- 'MicrosoftPreview' access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -20

For a full report per AI bot, upload the log to the AI Log File Analyzer, a free tool by Justin Hà.

What user-agent string does MicrosoftPreview use?

A user-agent sample recorded in the cited source for MicrosoftPreview. Version numbers such as Chrome/W.X.Y.Z change over time, so match the token, not the whole string.

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; MicrosoftPreview/2.0; +https://aka.ms/MicrosoftPreview) Chrome/W.X.Y.Z Safari/537.36

MicrosoftPreview FAQ

MicrosoftPreview identifies itself with the robots.txt token "MicrosoftPreview". A typical request header reads: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; MicrosoftPreview/2.0; +https://aka.ms/MicrosoftPreview) Chrome/W.X.Y.Z Safari/537.36

Microsoft states that MicrosoftPreview follows robots.txt rules. Check the documented scope and any exceptions on this profile.

A social-preview fetch is distinct from search-engine indexing. Blocking may affect future previews. Existing caches, metadata errors and image access can also affect the result.

Add two lines to the robots.txt file at the root of each domain and subdomain: "User-agent: MicrosoftPreview" followed by "Disallow: /". The token is case-insensitive. Operator fetch schedules and caching policy determine when a change is applied; check subsequent requests.

Not reliably. Microsoft verification is not established by the links recorded for MicrosoftPreview. Anyone can send the same user-agent string; investigate source addresses and request behavior before trusting it.

Search your server access log for "MicrosoftPreview", for example with: grep -i "MicrosoftPreview" access.log. The AI Log File Analyzer by Justin Hà counts visits per AI bot from an uploaded log file.

Sources: Microsoft crawler documentation. Content updated by Justin Hà.

See which of these bots actually reach your website

The AI Log File Analyzer by Justin Hà counts visits from GPTBot, ClaudeBot, PerplexityBot and other AI crawlers in your server log, for free. The GEO Technical Package sets up robots.txt, llms.txt and crawler access for AI search.

Zalo logo Chat Zalo WhatsApp logo Chat WhatsApp