Hey, just got a client request today to create an intranet for them in WordPress and I suggested they would do it in WIX instead. Now I might have rushed my recommendation a bit fast regarding members only and protection of data.
-
How can I ensure only list of members can access to site and no one at all can register or even try to register on their site?
-
How can I make sure all pages are only visible to members? Do I or the client need to remember to make the newly created pages members only or can I somewhere set a whole site a members only site?
I am sorry for asking this but I really need some official answer to get back to my client.
1 Like
This is not necessarily a Wix Code question. You can add the Wix Member Login from the App market. Whether you use the button or not, the ālog in/sign upā page will still pop up whenever someone tries to access member protected page.
A: #1 - Set the member sign up settings to āpeople i approveā, so that they have to be MANUALLY approved by someone to be able to access those member pages.
A: #2 - Each time a new page is created, you must remember to add RESTRICTIONS to the page in the settings (for members only). I recommend you have a landing page if you plan on having your āentire siteā as members only.
If you have any other questions, you can find my videos on Wix Community Channel on YouTube.
Good Luck on your project.
Ok thanks. So there no way adding site code to protect a site or setting up a router for the job?
To be honest Iām not sure. You will have to wait for a Wix Dev to answer that one for you. My guess is leaning towards a No, though.
Ok I am thinking, the site code tab in the code editor will run on whole site, just just one particular page. If I create a collection called internalUsers and in that collection I connect WIX-USERS and check if logged in user is a member of the collection internalUsers.
If I run this code on a site wide basis then any user visiting any page and not logged in or logged in but not member on the collection would be thrown out to the āYou have no permissionā page, the rest would be most welcome and the page would load as planned.
It would be awesome if it would work.
So you want to create different permissions levels for different members by creating collections? Instead of the single level permission already available in the member login app?
Yes but the main issue is to protect all pages no matter their respective permission setup.
Hi Andreas,
Using the site code will work. To make it even more secure you can add collection and web method hooks to validate any access to data is only done by the allowed users.
We are also discussing how to turn this into a feature of Wix Code and Wix in general.
Thanks. It also makes it easier to protect sites during development
Hi,
Has there been an update/feature to add this to Wix?
1 Like