# Allow google access to logged in categories

**URL:** <https://meta.discourse.org/t/allow-google-access-to-logged-in-categories/131899>\
**Category:** Product Support\
**Created:** [October 25, 2019, 7:56pm UTC](https://meta.discourse.org/t/allow-google-access-to-logged-in-categories/131899 "2019-10-25T19:56:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Garrick](https://avatars.discourse-cdn.com/v4/letter/g/b9bd4f/32.png) [@Garrick](https://meta.discourse.org/u/Garrick)\
**Post date:** [October 25, 2019, 7:56pm UTC](https://meta.discourse.org/t/allow-google-access-to-logged-in-categories/131899/1 "2019-10-25T19:56:57Z")

</div>

So making going into /admin/customize/robots  
Using sitemap plugin, I noticed this at the bottom. If I wanted to allow access for google to all posts that require login to view how would this part be changed?

Or would I just use Allow statements for all the categories?

I’m strictly looking at SEO as I changed the visibility of some categories recently and would like google to crawl the pages still.

\<%- if SiteSetting.sitemap\_enabled? %\>  
\<%- unless SiteSetting.login\_required? %\>  
Sitemap: \<%= request.protocol %\>\<%= request.host\_with\_port %\>/sitemap.xml  
\<% end %\>  
\<% end %\>

---

_[View the full topic](https://meta.discourse.org/t/allow-google-access-to-logged-in-categories/131899)._
