Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jdl8422

macrumors 6502
Original poster
Jul 5, 2006
491
0
Louisiana
I have a website and I want to make a login page separate from the site. The page is only going to be know by me and will require a username and password. I want to backup some files for work and be able to access them and download them when away from my computer. It does not have to be graphical at all, purely functional. I want to be able to login and access the files similar to the way my folders are setup on my local computer. I know there will be some php for the login and whatnot I just do not know where to start. Any help will be appreciated.
 
If its just for you, you may want to look into using a .htaccess file. Your webserver will handle the authentication for you and you wont need to bother doing any programming. Otherwise you will need a database and programming experience.

If you want to do it in PHP, try googling for things like: php login tutorial
 
I think I can handle the the login page, its the other page, with all the files on it that I am worried about. Where could I find something on that?
 
If its just for you, you may want to look into using a .htaccess file. Your webserver will handle the authentication for you and you wont need to bother doing any programming.

This is excellent advice. It's also going to be (most likely) much more secure than some login page you've cobbled together only half-understanding what you're doing. There are about ten trillion ways to screw up a login page so that it's not effective or secure and even the best developers get it wrong with some regularity.

Stick with password protecting via .htaccess and you'll have it up and running in about five minutes, securely and easy to manage.

Authentication, Authorization, and Access Control in Apache

Edit: For access the files, what you want may be as simple as enabling Directory Indexing in Apache for that directory. (Look into turning on FancyIndexing for a directory)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.