Skip to content

Restrict Access To Pages

teodorpk edited this page Jun 14, 2018 · 3 revisions

After you created your login page, now you will learn how to restrict access to your pages.

First create a PHP or ASP page (depending on your server model) and save it. Security restrict page does not work on plain HTML pages:

Select App in the App Structure (1) and click the Security Provider Enforcer button (2):

When the dialog appears enable Restrict Access:

And select your security provider from the dropdown. Only the security providers which are linked for the entire project will appear here:

If you need to restrict access and enable access only for users belonging to a certain access level, then select it:

We want to allow access for all the logged in users, so we don't select any permission here.

Select a page, where the not logged in users should be redirected to if they try to load this page:

Then select a page, where the unauthorized(with no access permissions) users should be redirected to if they try to load this page:

Click OK and you are done. Your page is now fully secured and cannot be accessed from not-authorized users.

NEXT: Learn how to secure your Server Actions.

Clone this wiki locally