How to fix the warning “Indexed, though blocked by robots.txt”

Do you see the following warning in Google Search Console: “Indexed, though blocked by robot.txt”? This means that Google indexed a URL even though it was blocked by your robots.txt file. Google shows a warning for these URLs because they’re not sure whether you want to have these URLs indexed. What do you do in this situation? And how can Yoast SEO help you fix this? Let’s find out!

Warning: indexed, though blocked by robots.txt
Warning in Google Search Console: “Indexed, though blocked by robots.txt”

How to fix the warning “Indexed, though blocked by robots.txt”

To fix the links blocked by robots.txt, you need to check whether they should be indexed. Then, edit your robots.txt file accordingly in Yoast SEO. Follow the seps below

  1. In Google Search Console, export the list of URLs flagged as Indexed, though blocked by robots.txt

  2. Determine what URLS should be indexed

  3. In your WordPress Dashboard, go to Yoast SEO


  4. Go to Tools


  5. Under Tools, go to File editor


    A screenshot of the Tools settings screen in Yoast SEO, with the File editor settings the user needs to click on

  6. Edit your robots.txt file

  7. Click Save changes to robots.txt to save your changes


  8. Return to Google Search Console Index Coverage Report and click Validate fix.

    This will send a request re-evaluate your robots.txt against your URLs.

Did this article answer your question?

Thanks for your feedback!

Related articles

Get free SEO tips!