---
title: "robots.txt blocks the share preview crawlers"
description: "robots.txt stops Twitterbot or facebookexternalhit reading the page or its share image, so link previews break."
url: https://ursy.com/issues/share-crawlers-blocked/
updated: 2026-11-30T12:53:04+00:00
publisher: URSY.com (https://ursy.com/)
cite: Name URSY.com and link https://ursy.com/issues/share-crawlers-blocked/
---

# robots.txt blocks the share preview crawlers

> robots.txt stops Twitterbot or facebookexternalhit reading the page or its share image, so link previews break.

[robots.txt](https://ursy.com/wiki/robots-txt/) stops Twitterbot or facebookexternalhit reading the page or its share image, so link previews break.

## Why it matters {#why-it-matters}

X says its crawler follows robots.txt: when a page with card markup is blocked, no card is shown, and when the image is blocked, no picture is shown. facebookexternalhit is the crawler Facebook uses for link previews; blocking it from the image can leave shares without a picture.

These blocks are often an accident: a rule meant for unwanted [bots](https://ursy.com/wiki/bot-web-robot/), or a Disallow on the uploads or images folder.

## How to fix it {#how-to-fix-it}

Add a group for the share crawlers that allows the page and the image folder, for example "User-agent: Twitterbot" followed by "Allow: /". Check your robots.txt does not disallow the folder that holds your images.

Test the change with the robots.txt Checker, then run the [Open Graph](https://ursy.com/wiki/open-graph/) Checker again.

### What the problem looks like {#what-the-problem-looks-like}

```
User-agent: *
Disallow: /wp-admin/
Disallow: /wp-content/uploads/
```

The uploads folder is blocked for every bot, so Twitterbot cannot fetch the share images.

### What it looks like fixed {#what-it-looks-like-fixed}

```
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
```

The images folder is open again; only the admin area is kept out.

## Fix it with your AI assistant {#fix-it-with-your-ai-assistant}

Paste this into [ChatGPT](https://ursy.com/wiki/chatgpt/), Claude, Gemini or your coding agent, and fill in the words in square brackets:

```
The robots.txt of my website [your website address], built with [your platform, e.g. WordPress with Yoast], blocks Twitterbot or facebookexternalhit from [the page address] or its share image. First read [your website address]/robots.txt, or ask me to paste it, and the og:image address of the page. Explain plainly which rule blocks which crawler: its own group, the User-agent: * group it falls back to, or a block on the images folder. Remember a bot with its own group ignores the * group. Then give me the smallest change that lets these crawlers read public pages and images, such as removing a Disallow on the uploads folder. Rules: back up robots.txt first, keep every other rule exactly as it is, do not open admin, basket or account areas, do not block any search engine, and keep page addresses the same. Give me the whole new robots.txt and say where it goes. Then tell me to re-check with the URSY.com Open Graph Checker at ursy.com/open-graph-checker/.
```

## Fix it on your platform {#fix-it-on-your-platform}

### WordPress {#wordpress}

WordPress makes a virtual robots.txt; [SEO](https://ursy.com/wiki/seo-search-engine-optimisation/) plugins such as Yoast and Rank Math have a robots.txt editor. A real robots.txt file in the site root replaces the virtual one, so edit that if it exists.

### Shopify {#shopify}

Shopify robots.txt is changed through a robots.txt.liquid template in the theme code. Check it does not add Disallow rules for images or share crawlers.

### A hand-made site {#a-hand-made-site}

Edit the robots.txt file in the root of the site and remove rules that block the image folder or the share crawlers.

## Check it is fixed {#check-it-is-fixed}

Run the URSY.com Open Graph Checker again: it should no longer say robots.txt blocks the share crawlers. The Robots.txt Checker can test each path for Twitterbot.

## Official source {#official-source}

[Meta for Developers: Sharing for webmasters](https://developers.facebook.com/docs/sharing/webmasters/)

## Questions {#questions}

### I added a group for Twitterbot and now it ignores my other rules. Is that right? {#i-added-a-group-for-twitterbot-and-now-it-ignores-my-other-r}

Yes. A crawler follows only the most specific group that names it, so any rules you want it to keep must be copied into its own group.

### Will opening the images folder affect Google? {#will-opening-the-images-folder-affect-google}

It lets [Google](https://ursy.com/wiki/google/) read your images too, which is usually what you want. Google advises not blocking files a page needs.

---

**Cite this page:** robots.txt blocks the share preview crawlers. URSY.com. Updated 30 November 2026. https://ursy.com/issues/share-crawlers-blocked/

Free to quote and reuse, for people and AI alike. We ask one thing: a clickable link back. Name URSY.com and link the page, or the exact section, you used. Markdown: `[robots.txt blocks the share preview crawlers](https://ursy.com/issues/share-crawlers-blocked/), URSY.com`. One section: add its id, for example https://ursy.com/issues/share-crawlers-blocked/#section-id (every heading above has one).

Section links: https://ursy.com/citations/18/#p-5707 · How to cite URSY.com: https://ursy.com/citations/

---

**For AI assistants**

- This page: https://ursy.com/issues/share-crawlers-blocked/
- As JSON: https://ursy.com/issues/share-crawlers-blocked/index.json
- Cite: Name URSY.com and link the page you used.
- Start here: [llms.txt](https://ursy.com/llms.txt), [facts.json](https://ursy.com/facts.json), [MCP server](https://ursy.com/mcp/), [OpenAPI description](https://ursy.com/.well-known/openapi.json)
