PDA

View Full Version : Password Protect A Page



Neophyte
05-11-2008, 12:17 PM
I'm brand new to the website game. I'd like to password protect 1 or 2 pages in my website. I tried opening a ticket, but, looking at the directions to protect a folder it looks like that would password protect my whole website. Help would be greately appreciated.

code_m
05-11-2008, 04:20 PM
Just create a new directory and place the pages that you want password protect inside the directory. Then password just that directory and link to the pages from another spot.

It would be a good idea to make one of the pages within the directory named "index.html" so that way you don't have to go directly to the page when you link.

Say you make the directory "pass" .. To link to the main page within pass you could just type "http://yourdomain.com/pass" instead of "http://yourdomain.com/pass/page.html"

Neophyte
05-12-2008, 12:01 AM
Just create a new directory and place the pages that you want password protect inside the directory. Then password just that directory and link to the pages from another spot.

It would be a good idea to make one of the pages within the directory named "index.html" so that way you don't have to go directly to the page when you link.

Say you make the directory "pass" .. To link to the main page within pass you could just type "http://yourdomain.com/pass" instead of "http://yourdomain.com/pass/page.html"

Thank you, for your suggestion. Sounds almost like a response from a ticket I sent/received, but actually a bit more detailed. I don't know how to do it. I'm really new to this game. Additional help would be appreciated as well.

sjlplat
05-12-2008, 05:34 AM
I have a PHP script called Login Session that is designed for just this. You can view the demo, download the script, and read the release notes at http://www.myphpscripts.net/?sid=7

code_m
05-12-2008, 05:31 PM
Ok.. tell me what you can do...

For example, do you know where and how to make a new directory?

Neophyte
05-14-2008, 01:36 AM
I have a PHP script called Login Session that is designed for just this. You can view the demo, download the script, and read the release notes at http://www.myphpscripts.net/?sid=7

I tried the demo looks promising. Does the download include "how to" instructions?

Neophyte
05-14-2008, 01:38 AM
Ok.. tell me what you can do...

For example, do you know where and how to make a new directory?

I chose "Neophyte" as a user name for a good reason. One of its definitions is "Beginer". I know how to open applications and peruse menus. Much more than that and it's more hit than miss, but with a fair share of miss'n. To make a new directory is a step into the great unkown for me.

code_m
05-17-2008, 10:26 PM
You either need to go to your File Manager (within cPanel, found in the main screen of your HostMonster Log-In) or get a FTP client such as FileZila (just google it).

Once in the File Manager or connected by FTP, go to the folder "public_html" where your pages should be. Then simply find the button that says "create new folder"

FTP is not hard at all, and with a client it's no more hard than transferring a file from a hard drive to an external drive. Once your logged in that is. To log in you need your FTP domain, usually "ftp.domanin.com" , Username, create your own or use the default format "user@domain.com" , Password, if using the default it is the same as your HostMonster Password, and port number, nearly always "21" .

It is always best to create a different FTP account than default, to do this, again, go to cPanel, and click on "FTP Accounts" and then just create a new account, set the default folder to "public_html" ... make sure to remember the password you use.

Once you've created your folder, go back to your cPanel, put your pages inside the folder, and click on "Password Protect Directories" and then choose to "navigate to public_html" after that, follow the on screen directions!

Now that you have a password protected directory, you can put links to on your pages, or send links to the people you want to have access to them.

If this doesn't help, ask your mother or something, I did a step by step instruction book for you.