Can I require a password or code to visit a certain page on my website?
Autor: Sharp Management
Visitado 1610,
Followers 1,
Compartido 0
I have not published my website. I don't want certain visitors to be able to access certain pages. Can I require a generic password or code to access a page? Or is the only option to require users to create accounts?
Publicado en
Hello Sharp Management,
WebSite X5 uses PHP to restrict access to webpages, and its implementation requires that you create at least one 'account' - i.e. username and password combination.
If you are not overly concerned about security then many users could share the same username and password.
However, there is another way to protect pages from unauthorised access without first registering and creating an account, and that is to make use of the basic authentication features built-in to Apache web server (I'm assuming you are hosted on such a server) - please see the following articles for further details:
http://www.thesitewizard.com/apache/password-protect-directory.shtml
https://wiki.apache.org/httpd/PasswordBasicAuth
Obviously, this is a custom method and not part of WebSite X5 in any way. You can set things up using an FTP client like FileZilla:
https://filezilla-project.org/
Hope this helps.
Kind regards,
Paul