Skip Navigation

[Resolved] restrict access to website to registered users

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to prevent guest users from accessing the site?

Solution:
Access doesn't have a blanket option for the whole of the front end. Maintenance-mode plugins may offer the feature to allow only registered users to visit the site.

With Access you can go to Toolset > Access Control and make sure all of the post types (including pages) are managed by Access and edit those to deny read access to guests. That should cover everything.

You can specify what to display instead, so could create a Content Template that the site is for registered users only and a login form, and display that to people denied access.

Relevant Documentation:
https://toolset.com/documentation/user-guides/setting-access-control/#choosing-what-to-display-when-read-access-is-denied

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 2 voices.

Last updated by davidm-13 6 years ago.

Assisted by: Nigel.

Author
Posts
#1155671

My client has asked me to restrict access to the website front-end - including the home page - only to registered users while the site is under construction. Can I do this with Toolset Access?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1156073

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi David

Access doesn't have a blanket option for the whole of the front end, but you can go to Toolset > Access Control and make sure all of the post types (including pages) are managed by Access and edit those to deny read access to guests. I think that should cover everything.

You can specify what to display instead, so could create a Content Template that the site is for registered users only and a login form, and display that to people denied access.

https://toolset.com/documentation/user-guides/setting-access-control/#choosing-what-to-display-when-read-access-is-denied

#1156852

Hi Nigel,
Thanks for this, You say to create a content template with a login form, if I use this as a temporary front (home) page until I take the site live, would that be a solution to giving access to registered users only?

#1157680

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi David

Well, you would only be denying access to non-logged-in users, logged-in users would still be able to visit the various pages. But if they tried and weren't logged in you would want them to see the log-in form, which is what the content template is for.

You could treat the homepage the same way.

If you don't want to go to the trouble of bringing everything under Access control, post type-by-post type, I think some of the maintenance-mode plugins available have the option to let registered users use the site and only exclude guests.

#1158853

My issue is resolved now. Thank you!