# Display Header HTML to Logged-in Users Only

**URL:** <https://meta.discourse.org/t/display-header-html-to-only-logged-in-users/113806>\
**Category:** Product Support\
**Created:** [8 באפריל,‏ 2019,‏ 9:52pm UTC](https://meta.discourse.org/t/display-header-html-to-only-logged-in-users/113806 "2019-04-08T21:52:16Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![daxen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daxen/32/64364_2.png) [@daxen](https://meta.discourse.org/u/daxen)\
**Post date:** [10 באפריל,‏ 2019,‏ 2:31pm UTC](https://meta.discourse.org/t/display-header-html-to-only-logged-in-users/113806/13 "2019-04-10T14:31:03Z")

</div>

> [@pmusaraj](#):
>
> Why do you have to have a server-side solution?

because my html content i want to show is only for logged-in users.

with this js solution every not logged in user can access the .js file over the url which is included always (in the login page too)

> http\_s://forum.domain.tld/theme-javascripts/83c1451748e441c882ef44430f033c57bb1ab1dd.js

and can see my js-injected html thats only for logged-in users.

i need a secure solution, not css/js pseudo secure solution.

---

_[View the full topic](https://meta.discourse.org/t/display-header-html-to-only-logged-in-users/113806)._
