{
    "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/",
    "canonical": "https://ursy.com/issues/share-crawlers-blocked/",
    "markdown": "https://ursy.com/issues/share-crawlers-blocked/index.md",
    "json": "https://ursy.com/issues/share-crawlers-blocked/index.json",
    "published": "2026-11-29T21:57:24+00:00",
    "updated": "2026-11-30T12:53:04+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/share-crawlers-blocked/",
    "start_here": {
        "page": "https://ursy.com/issues/share-crawlers-blocked/",
        "markdown": "https://ursy.com/issues/share-crawlers-blocked/index.md",
        "json": "https://ursy.com/issues/share-crawlers-blocked/index.json",
        "cite": "Name URSY.com and link the page you used.",
        "doors": {
            "llms_txt": "https://ursy.com/llms.txt",
            "facts": "https://ursy.com/facts.json",
            "mcp": "https://ursy.com/mcp/",
            "openapi": "https://ursy.com/.well-known/openapi.json"
        }
    },
    "issue": {
        "slug": "share-crawlers-blocked",
        "problem": "robots.txt blocks the share preview crawlers",
        "summary": "robots.txt stops Twitterbot or facebookexternalhit reading the page or its share image, so link previews break.",
        "status": "Live",
        "priority": "medium",
        "category": "titles-meta",
        "category_title": "Titles, descriptions and sharing",
        "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": [
            "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."
        ],
        "steps": [],
        "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.",
        "found_by": [
            {
                "tool": "open-graph-checker",
                "name": "Open Graph Checker",
                "status": "Live",
                "page": "https://ursy.com/open-graph-checker/",
                "card": "https://ursy.com/open-graph-checker.json"
            },
            {
                "tool": "robots-txt-checker",
                "name": "Robots.txt Checker",
                "status": "Live",
                "page": "https://ursy.com/robots-txt-checker/",
                "card": "https://ursy.com/robots-txt-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/share-crawlers-blocked",
        "source": {
            "url": "https://developers.facebook.com/docs/sharing/webmasters/",
            "title": "Meta for Developers: Sharing for webmasters"
        },
        "cite": "robots.txt blocks the share preview crawlers. URSY.com. https://ursy.com/issues/share-crawlers-blocked/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#what-it-looks-like-fixed"
        },
        {
            "level": 2,
            "text": "Fix it with your AI assistant",
            "id": "fix-it-with-your-ai-assistant",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#fix-it-with-your-ai-assistant"
        },
        {
            "level": 2,
            "text": "Fix it on your platform",
            "id": "fix-it-on-your-platform",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#wordpress"
        },
        {
            "level": 3,
            "text": "Shopify",
            "id": "shopify",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#shopify"
        },
        {
            "level": 3,
            "text": "A hand-made site",
            "id": "a-hand-made-site",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#a-hand-made-site"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#questions"
        },
        {
            "level": 3,
            "text": "I added a group for Twitterbot and now it ignores my other rules. Is that right?",
            "id": "i-added-a-group-for-twitterbot-and-now-it-ignores-my-other-r",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#i-added-a-group-for-twitterbot-and-now-it-ignores-my-other-r"
        },
        {
            "level": 3,
            "text": "Will opening the images folder affect Google?",
            "id": "will-opening-the-images-folder-affect-google",
            "url": "https://ursy.com/issues/share-crawlers-blocked/#will-opening-the-images-folder-affect-google"
        }
    ],
    "links": [
        {
            "text": "robots.txt",
            "url": "https://ursy.com/wiki/robots-txt/",
            "internal": true
        },
        {
            "text": "bots",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "Open Graph",
            "url": "https://ursy.com/wiki/open-graph/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "SEO",
            "url": "https://ursy.com/wiki/seo-search-engine-optimisation/",
            "internal": true
        },
        {
            "text": "Meta for Developers: Sharing for webmasters",
            "url": "https://developers.facebook.com/docs/sharing/webmasters/",
            "internal": false
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        }
    ],
    "words": 601,
    "text": "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 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 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, 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 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 Meta for Developers: Sharing for webmasters 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.",
    "source": "https://ursy.com/issues/share-crawlers-blocked/"
}