zbeng Posted December 11, 2006 Report Share Posted December 11, 2006 Warning: This tutorial uses .htpasswd and .htaccess. This process will slow down the speed of your website as it checks every directory. You also need an apache server with PHP ability to run this.What you need:FTP access to your serverNotepad/Wordpad/...Basig knowledge of websitesLet's get started: Open Notepad and create a file. This needs to be in it:AuthUserFile DirectoryAuthName "Title of log-in screen"AuthType BasicRequire valid-userYou need to change "Directory" into the directory your website is in. For example:www/website/members/You need to change "Title of log-in screen" to something you want. Don't forget to keep the quotes though.Now, when using notepad, go to save as... and save it as ".htaccess" (without the ""). Don't forget to choose 'all types' and not .txt. Otherwise you can always rename the file to '.htaccess' in the FTP browser.The .htpasswd needs to contain a username and a encrypted password. A good tool to encrypt passwords is found here:http://home.flash.net/cgi-bin/pw.plYour htpasswd file looks like this:username:p.whLw2ZDZroUWith notepad, save it as '.htpasswd' or again, rename it within the FTP browser.Everything is set up now, though, make sure you got these things right:You've put the .htpasswd file in the right directory you specified in the .htaccess file.You've got the right names. '.htpasswd' and '.htaccess' and you are sure the .'s are there too.You've put the .htaccess file in the directory on your server you want to protect.You've encrypted the passwords. Quote Link to comment Share on other sites More sharing options...