Restricting a page to non-members (visitors who aren’t logged in) only

Posted in

Hello there- We have several pages related to registration, activation, etc. that we would like to make inaccessible to group members who are already logged in (i.e. They should be redirected to our “Restricted Access” or “Client Portal” pages). At present, we can restrict these pages by Group (works great, BTW!), but can’t seem to find a way to prevent logged in members from visiting them. Any suggestions? Thanks in advance!

3 Responses to Restricting a page to non-members (visitors who aren’t logged in) only

  1. George February 14, 2019 at 9:04 am #

    You’re welcome Karl.


  2. Karl February 13, 2019 at 5:44 pm #

    Hi George-

    Thank you for your reply–glad I wasn’t just missing something in terms of Groups’ functionality and wasting your time. I’ll explore the redirection approach and see where it leads.


  3. George February 13, 2019 at 9:02 am #

    Hi Karl,

    Your idea sounds quite interesting although still not supported by Groups. At the moment it handles restrictions for non-users and for registered users depending on the group(s) they belong as you have already noticed.

    In your case I would recommend you to have a look at redirections. For example, if this redirect should apply to all users regardless of which group they belong to, then you should check if there is a user logged in and which page is visited. If the page is one of the pages you don’t want them to see, redirect to another page.

    Kind regards,

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account