Hi mate,
Type the following into notepad:
AuthUserFile /
AuthGroupFile /dev/null
AuthName Restricted Area
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
select save as, and save as .htaccess , make sure that you have selected all files in the save as screen or it will save it as a text file.. If you cannot get it to work without a filename, then call the file something like test.htaccess
Now, in a new folder, can be virtually anywhere on your machine, create a new file the same way as above but call this .htpasswd and in this file put a username and password in the following format:
username

assword
Alter the top line of the htaccess to point to the path on your machine where the htpasswd is and make sure that if you called it test.htpasswd then you insert that, then place the htaccess in the directory you want to restrict.
Now open your browser and enter the directory that the htaccess is in.
You should see a password prompt..
If you do, try your password you typed eariler.
If not let me know what happened and also any error messages you got on screen and also in your error log..
Hope this helps Wullie