Logging into my website
Author: Christine C.
Visited 1861,
Followers 1,
Shared 0
Hi All.
Can anyone tell me if it is possible to make my website none accessible unless details for example a email address and a password as been put in before you gain access. I have noticed that some website do not allow you to log in to gain access it unless these details are put in > I know you can make each page none accessible unless you provide your details etc. Any information would be much appreciated, as I would like complete control on who can logs into my website,
Kind Regards Christine
Posted on the
Hello,
It is possible to do this. Please click the following link below:
https://guide.websitex5.com/en/support/solutions/articles/44001309308-how-to-set-up-locked-pages
You can also read the "Related Articles" to the right after you click the link for more information.
Author
Thank You.
Really want to provent anyone from logging onto my website, with them having to log in first before the gaining access to my website. I do know how to make pages none accessable but visitors has already gained access to the website. I would like to control who can log onto my website ,with them hving to lo in first Christine
Hello Christine
You could use a .htaccess file for that.
You can see here : https://help.dreamhost.com/hc/en-us/articles/216363187-Password-protecting-your-site-with-an-htaccess-file
There are also other sites that tell how to do it.
Using the htacces method will prevent anybody from seeing anything before a valid userid+password is given in.
Doing it this way, you can make a "normal" X5 project and just upload it as usual.
If you already have a site, then you just have to create or edit the access file.
A link to create the passwords is here : https://www.web2generators.com/apache-tools/htpasswd-generator
Advice - You must keep the non-hashed password that the user shall use in a secured place - eventually only on your PC. You get the hashed password that shall be used in the .htpasswd file by using the online service in the link - or maybe find another service.
Hope this helps you.
A tip :
I think the easiest is to use the Notepad++ to create and edit the .htaccess and the .htpasswd files.
You upload the files by using FileZilla or another FTP-program. X5 can also be used to upload the files.
Author
Hi John
Many thanks for the idea , but I am not up to all of this stuf. Wht I really need is a sort of a script to edit and then to follow on from there. I ave been asking X5 to incororate a log in for years but they have not taken any notice,that is why I have never upgraded as it does not have wat I need in it . Many Thanks Christine
Hello Christine
I think that X5 will never have this function as it is already possible via .htaccess files.
Maybe they will make a function where X5 creates/edits the .htaccess file and then a routine where you can maintain a .htpasswd file. This will be the same but will be easier for the user.
It is just to create 2 files. A few lines in the one file and username and passwords in the other file. It is not complicated and requires no coding skills, but if you don't want to use the .htaccess methos, I think you will have to wait very very patiently for a solution.
This is what could be in the .htaccess file :
-----------
AuthUserFile /path/to/.htpasswd
AuthType Basic
AuthName "My restricted Area"
Require valid-user
-------------
And this is what could be in the .htpasswd file
-------------
user1:$apr1$clme56rh$7kbO8h94VA5UWBNpdayu80
user2:$apr1$l76zf4jy$M7064lZwDjJjGigJ48fqP/
user3:$apr1$f2dmapgz$C.8mBkD1DoUiBVJGaCfJM0
--------------------
It is only examples, but that is what it takes to password protect a site and give access to 3 users.
When the files is uploaded then it will function.
Author
John
many thanks,
I just do not know where to find this file to put the coded pw and username into . I manage to create a password and user name but thats about it. If when you have time maybe you can guild me to it with a samples as I do not knowing where to look to put this code that has been created into . Sorry for being so stupid but X5 is a nice program but still hard for people like myself Many Thanks.
If youn contact me via this page http://calendarforum.dk/contact.html I will guide you. I can make a file for you, that you then can edit to your "real" data and then upload.
The .htaccess thing is not a X5 thing, so we should not misuse the forum for that.
Author
Many Thanks.
I have contacted you via your request Christine
Christine - It seems I have problems with the mailing system on calendarforum.
Could you use this instead : https://pindown.eu/contact.html
Christine, if I wanted this feature I would lock every page so each required a username (email) and password except the Home page, any attempt to open any page via the menu or a link would then require a login.
You could even combine this with a welcome screen to explain the need of a verified login before access would be granted.
The advantage of this over htaccess password is it is easy to remove just one user if required (because each login can be unique)
Author
Thank You Esahc
The purpose of wanting to lock the Home page is once a persn logs onto my webiste I ave forms on it that links to pages and I want to control who gets onto my website. I just want full control and it is not possible to stop anyone logging onto the home page, if there was a Home Page control like they ave with access to pages this would be fine, I have been asking this every year with emails to X5 but they have never carried out this or even attempted to put this into the program that is one reason I ave not upgraded since version 14,Thank You once again Christine
There is no reason that the existing home page cannot be changed to a standard locked page (change the name? index2??) Then create a new home page from where the user can go nowhere unless they have a log in.
- just a thought :-)
Author
Thank You .
I will try this later and see if it works, but X5 sould consider this additinal application to be able to say who can accesses my website.
Only then I will buy futuerer upgrades etc, I have all versions from ver 7 up to Pro 14 version but stopped buying from X5 as the one issue I have and X5 has not considered to put it into their new versions over the years. Maybe you sould send a copy of this to the bosses of X5 and their programmers Regards Christine
Not a problem. I am sure they read every word and every criticism.
Please advise your progress.
Author
Hi Esahc
can you please send me an example of what you have sugested about changing the Homename page an example in a jpeg would be very useful for me to act I am a dumb blond lol
Christine, my apologies, my original instructions did not quite work as expected.
Highlight the existing home page and select copy, then select paste
Now select home page copy and you can rename it (eg home page secure), then lock the page
Now return to your original home page and open it. Remove everything that you do not want people to see. Add a button or text link to open the new secure home page and explain that login and password is required. When the user clicks on the link (or selects the secure home page from the menu) they will be requested to log in.