Support » Plugin: Yoast SEO » Sitemap Warning: Url blocked by robots.txt.

Viewing 7 replies - 1 through 7 (of 7 total)
  • I’m having the same issue with one of my websites (working perfectly fine on others), for no apparent reason. The sitemap causing trouble is:

    It came to my mind that the image (1px) somehow got embedded in a post, but can’t find it with Google, nor in the sitemap itself (image paths not displayed in the sitemap).

    Robots.txt itself isn’t the problem, since it’s identical to other WP based websites, hiding wp-admin and wp-includes folders from the bots.

    Anyone knows how to solve this issue?

    I think I’m having the same issue as well.

    I’m getting a sitemap warning via google webmaster tools:
    Sitemap contains urls which are blocked by robots.txt.

    The offending URL is:

    I’ve tried deactivating and deleting the plugin, and Google still claims the issue persists.


    Check your robots.txt, this is normal for my site, I block certain locations from crawling as they are administrative and not for the general public. Most likely you have a link to the content somewhere else on your site.

    Best regards,
    Edward L. Haletky

    Thanks for responding Edward –

    I agree it’s robots.txt. Are you suggesting that within a post or page there’s a reference to specific content that’s somehow affecting/rewriting robots.txt?

    I’m having the same issue. The dreaded robots.txt is blocking /wp-includes/js/tinymce/plugins/wordpress/img/trans.gif, which it should be blocking. When I click on the site map referenced in the error/warning, it’s not there. From what I gather, it’s somehow embedded on one of those pages? Am I correct?

    Has anyone successfully troubleshooted this issue? Any suggestions?

    I wanted to follow up with a fix that others might find helpful. The trans.gif image was inserted in a page. Google Webmasters will show you the sitemap where the image exists, but it could be 1000 urls. I’m not sure, but I’m guessing you can configure Yoast to a smaller grouping of URL’s. What I did was look at each URL that had 2 or more images and I would drop the link into the demo version of Screaming Spider, with the image URL window open. Most of these will come back as wp-content/… I went through about 60 or so URLs and then bingo. The culprit was a more tag with the trans.gif image at the end. Edited that page and removed the image.

    Hope this helps.

    I found a very simple way to fix my issue, probably could help others too. As cmeinck said, these images somehow got inserted into posts/pages.

    Go to your All posts, type t.gif (or trans.gif, or whatever image causes the problem) into the search field and find all the posts that have this image inserted (in my case it was just 2 of 100). Repeat the procedure for pages.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sitemap Warning: Url blocked by robots.txt.’ is closed to new replies.