0

I would like to disallow the authors (of articles for example) in the file robots.txt. In fact, I noticed that for some of my sites, Google indexed the authors of articles, which I don't want to. Someone thinks is it possible ?

(I tried something like Disallow: /author/ but I'm not sure it works...)

Thank you in advance,

ArbreMojo.

  • Do you use Yoast SEO? – Pim Sep 14 '18 at 7:58
  • Yes I do ! :) Is there a way to do that with Yoast SEO ? – ArbreMojo Sep 14 '18 at 7:59
0

If you use Yoast SEO, you can go to Users > All Users, and in the Yoast SEO settings, check Do not allow search engines to show this author's archives in search results. See this link.

OR

With robots.txt, you can add:

User-agent: *
Disallow: /author/*

OR

You can also add the robots meta-tag to the appropriate pages:

<?php if(is_author()){ ?>
  <meta name="robots" content="noindex">
<?php } ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.