# Show warning "Members Only" when not Logged In

**URL:** <https://forum.wixstudio.com/t/show-warning-members-only-when-not-logged-in/4638>\
**Category:** Ask the community\
**Tags:** wix-members-area, code, question\
**Created:** [September 28, 2018, 10:44pm UTC](https://forum.wixstudio.com/t/show-warning-members-only-when-not-logged-in/4638 "2018-09-28T22:44:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![contact77863](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/contact77863/32/6473_2.png) [@contact77863](https://forum.wixstudio.com/u/contact77863)\
**Post date:** [September 28, 2018, 10:44pm UTC](https://forum.wixstudio.com/t/show-warning-members-only-when-not-logged-in/4638/1 "2018-09-28T22:44:11Z")

</div>

Currently when you are not logged in and click the “members only” page I have created, nothing happens…there is no feedback for the user to know why a page does not work.

I want users who are not logged in to see a “You need to sign-in” page, and those who are already logged in to see the actual content.

How can I do this? Code-less solutions welcome too!

Thanks!

---

<div class="post-metadata">

**Author:** ![mhammouz](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mhammouz/32/4033_2.png) [@mhammouz](https://forum.wixstudio.com/u/mhammouz)\
**Post date:** [October 10, 2018, 1:09pm UTC](https://forum.wixstudio.com/t/show-warning-members-only-when-not-logged-in/4638/2 "2018-10-10T13:09:03Z")

</div>

Hi,

All you need is to check if the visitor is logged in or not, using **wix users** api.  
Check it out : [Here](https://www.wix.com/code/reference/wix-users.User.html#loggedIn)

Hope this helps!  
Best,

**Mustafa**

---

<div class="post-metadata">

**Author:** ![contact77863](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/contact77863/32/6473_2.png) [@contact77863](https://forum.wixstudio.com/u/contact77863)\
**Post date:** [October 11, 2018, 4:57pm UTC](https://forum.wixstudio.com/t/show-warning-members-only-when-not-logged-in/4638/3 "2018-10-11T16:57:11Z")

</div>

Thanks for the suggestion Mustafa!

So, I would check to see if they are logged in, and then I would trigger a pop-up if they click “members” if they are not logged in?  
Thanks so much for your help!

---

<div class="post-metadata">

**Author:** ![\_or](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/_or/32/1004_2.png) [@\_or](https://forum.wixstudio.com/u/_or)\
**Post date:** [October 14, 2018, 12:33pm UTC](https://forum.wixstudio.com/t/show-warning-members-only-when-not-logged-in/4638/4 "2018-10-14T12:33:37Z")

</div>

Hi,  
Do you want to block visitors if they aren’t logged in or only show a popup?  
You can display a popup if you want but if you want to block the visitors from seeing member’s pages you should use [routers](https://support.wix.com/en/article/creating-a-router) .
