WebSite X5Help Center

 
Tom G.
Tom G.
User

How to open page only after authentication?  en

Author: Tom G.
Visited 180, Followers 1, Shared 0  

I have a page, which should only be accessed after specifying proper user id and password.

Right now, I have a login page, from which I open the restricted page (only when user id and passwords are correct). But when someone knows the url of my restricted page, he can specify it and open it skipping the authentication part.

How can I force authentication for the restricted page and not allow to open it without user id and password?

Posted on the
5 ANSWERS - 2 USEFUL - 1 CORRECT
Tom G.
Tom G.
User
Author

Thank you, afs, for quick response!

Well, it doesn’t work for me… Is it ver 17.1.2 problem?

            

Here is my project.

On the EVENT page, press <crtl>e – the EditText.html will open (the functionality there is removed at this point). It is supposed to ask for email and password (specified in Reserved Access) but it doesn’t.

                        

Also, you can type in the url of this page and it will open without authentication...

Read more
Posted on the from Tom G.
Tom G.
Tom G.
User
Author

Looks like WSX5 recognizes the protection, because I'm getting this message when run Preview:

            

But nothing happen when WebSite is uploaded to the server...

Read more
Posted on the from Tom G.
Paul M.
Paul M.
Moderator
Best User of the month EN

Hello Tom,

Pages with .html extensions can never act as protected pages in WebSite X5.  The pages are locked using PHP code.

Therefore you need to change the file extension of the 'event' page to .php in Step 3  -  Map > Page > Properties > Expert > File Name Format (however, this should happen automatically for every page you set as 'Locked' in the website map...  there should be no need to do this manually).

Your new locked page URL will then be as follows:

http://www.ownitconsignment.com/event.php

Kind regards,

Paul

Search the WebSite X5 Help Center (multilingual)

Read more
Posted on the from Paul M.
Tom G.
Tom G.
User
Author

Hi Paul,

My EVENT page should not be protected. From this page, after pressing <ctrl>e, the EditText.html opened. And that was wrong. I have changed the page to EditText.php and it worked!

Thank you Paul and afsoftware for your input!

Read more
Posted on the from Tom G.