web stats service from statcounter

Navigate to 4WebHelp, Alterlinks or HTMLlite. Enter a user name and then password for your page. These are password encryptors and are necessary to create the htaccess page. Each generator works identically the same. Highlight the code they give you and press "Ctrl"+"C" (in Windows) to copy it.

Click "Start," type "notepad" and press "Enter." Press "Ctrl"+"V" to paste the code into your notepad file.

Click "File > Save As." Click the file type from the drop-down and click "All files." Locate your website folder and save it as ".htpasswd" (without the quotes).

Click "File," in Notepad, then "New." Type the following code into the document:

AuthUserFile //path/to/.htpasswd

AuthType Basic

AuthName "Name for Password-Protected Area"

Require valid-user

Replace "/path/to/.htpasswd" with the path to the file, once it has been uploaded. Your Web host will have provided this information to you -- if you are unsure. This will password-protect the entire folder that it is stored in.

If you want to only protect one page, add the following code (before "Require valid-user"):

Replace "webpage" with the page you wish to protect. Add the following code after "Require..."

Click "File," then "Save As." Click "File type." Click "All Files." Save the file with your website as ".htaccess" (without quotes). When you upload the two files, you will have password-protected your website.

0 comments:

Post a Comment

 
Top