Can search engines index authenticated pages?

I’ve successfully added authentication to my site (thanks to this thread Authentication, private pages direct urls), but I’m wondering if I need to worry about Google and other search engines scraping the content on these pages. Is there anything I need to do to prevent indexing for password protected pages (both text and images), or are they “safe” because of the login requirement?

Search engines cannot access password protected pages and I don’t think they index them either. To make sure those pages don’t get indexed, you can also add a robots.txt file. More information here.

Note that if a page is password protected, it doesn’t mean that you files are as well. Check out this cookbook recipe on how to protect your assets.

1 Like

you could also put a checkbox field your blueprint files such as

noindex: 
  label: No Index if ticked
  type: checkbox

in your header section

<?php if($page->noindex()->bool(): ?>
    <meta name="robots" content="noindex" />
<?php endif ?>
1 Like