# Make Custom Header Links private for private/login required sites

**URL:** https://meta.discourse.org/t/make-custom-header-links-private-for-private-login-required-sites/314478
**Category:** Feature
**Tags:** custom-header-links
**Created:** [May 12, 2021, 10:30pm UTC](https://meta.discourse.org/t/make-custom-header-links-private-for-private-login-required-sites/314478 "2021-05-12T22:30:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Alon1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alon1/32/197167_2.png) [@Alon1](https://meta.discourse.org/u/Alon1)
#### Post date: [May 12, 2021, 10:30pm UTC](https://meta.discourse.org/t/make-custom-header-links-private-for-private-login-required-sites/314478/1 "2021-05-12T22:30:59Z")

</div>

Hi,

Thanks for this great theme component!

For registration-only / private Discourse communities, **would it be possible to show the header links only to registered signed-in users**?

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [May 12, 2021, 11:20pm UTC](https://meta.discourse.org/t/make-custom-header-links-private-for-private-login-required-sites/314478/2 "2021-05-12T23:20:31Z")

</div>

Yes, you can hide them via CSS for visitors who are not logged in:

```
html.anon .custom-header-links {
    display: none;
}

```

---

<div class="post-metadata">

### Author: ![Alon1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alon1/32/197167_2.png) [@Alon1](https://meta.discourse.org/u/Alon1)
#### Post date: [May 12, 2021, 11:27pm UTC](https://meta.discourse.org/t/make-custom-header-links-private-for-private-login-required-sites/314478/3 "2021-05-12T23:27:34Z")

</div>

Thanks, however CSS just hides it from view, the links are still available in the page source and so open to anyone, including search engine, crawlers, etc.  
I was aiming for not showing those links at all, like you would have hidden topics in:  
 ![image](https://global.discourse-cdn.com/meta/original/3X/2/0/2017f40a4a35b2f0d7147d2d01c64088e41f6b42.png)
