robots.txt blocks the share preview crawlers
robots.txt stops Twitterbot or facebookexternalhit reading the page or its share image, so link previews break.
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, or a Disallow on the uploads or images folder.
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 Checker again.
What it looks like, and fixed #
User-agent: *
Disallow: /wp-admin/
Disallow: /wp-content/uploads/
The uploads folder is blocked for every bot, so Twitterbot cannot fetch the share images.
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 #
Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.
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/.
We find the problems, and help you fix them
- Check Run a free tool or the full audit.
- Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
- Re-check Come back, check again, and watch each fix turn green.
Fix it on your platform #
WordPress
WordPress makes a virtual robots.txt; SEO 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 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
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 #
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 #
Questions #
I added a group for Twitterbot and now it ignores my other rules. Is that right?
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?
It lets Google read your images too, which is usually what you want. Google advises not blocking files a page needs.
More problems in Titles, descriptions and sharing
- No viewport tag for phones High priority
- The page has no title High priority
- The share image does not load High priority
- No share image (og:image) Medium priority
- Open Graph tags come too late in the page Medium priority
- Several pages share the same title Medium priority
- The character set is not declared Medium priority
- The page has more than one title tag Medium priority