Password Protect my Website?
I have a website hosted on GoDaddy and I was wondering if I can put a password on it so that only my friends can access it. I have tried with htaccess and htpasswd but I cannot get it to work. I have also attempted to use some javascript to make a login page but whenever I upload the files, there is an error message in my browser saying;
Page Not Found
The page you tried to access does not exist on this server. This page may not exist due to the following reasons:
1. You are the owner of this web site and you have not uploaded (or incorrectly uploaded) your web site. For information on uploading your web site using FTP client software or web design software, click here for FTP Upload Information.
2. The URL that you have entered in your browser is incorrect. Please re-enter the URL and try again.
3. The Link that you clicked on incorrectly points to this page. Please contact the owner of this web site to inform them of this situation.
even though I have uploaded it correctly. None of the tutorials online are detailed enough. Can someone please give me a step by step tutorial on how to do this?
By the way I am using .php (index.inc.php, index.php and style.css) if that helps…
If what your trying to accomplish is simply a low security password, then it might be easier just to implement it in PHP. If we’re only talking about one web page, take a look at this link to get an idea.
http://www.totallyphp.co.uk/scripts/password_protect_a_page.htm
I should note that your usernames and passwords will be sent over the internet in plaintext. If security is a concern, then you might want to look into paying for an SSL certificate.
If what your trying to accomplish is simply a low security password, then it might be easier just to implement it in PHP. If we’re only talking about one web page, take a look at this link to get an idea.
http://www.totallyphp.co.uk/scripts/password_protect_a_page.htm
I should note that your usernames and passwords will be sent over the internet in plaintext. If security is a concern, then you might want to look into paying for an SSL certificate.
References :
http://corey.dontexist.org/