Hi,
Firstly, you could download apache but this would not learn you anything about htaccess on unix unless you actually run it on unix. Windows and unix use different ways to create the files.
I was actually hoping that you were running on Windows as that would be a lot easier to explain..
To create a htpasswd file in unix you must either have the ability to telnet to the server or use some kind of script to do this for you. A lot of servers will not allow you to telnet.
The second option is the way I will go just now as you didn't know what server you were running on so telnet might be beyond you at this point. (If you can even use it on the server)
Check out this script, I personally havn't used it but it looks ok from what I have seen.
The next part is where most people find problems:
Open notepad and copy and paste the following text into it.
AuthName "Restricted Area"
AuthType Basic
AuthUserFile "/home/user/secure/.htpasswd"
require valid-user
Change the path to the actual path from the root of your server to where the .htpasswd file will reside.
Now the tricky bit, click on file > save as > then save the file as .htaccess
Windows will not normally allow a file with an extension and not a name as .htaccess is, so if you have problems with this then save the file as test.htaccess or similar. I personally can save the .htaccess file without any problems.
Now upload that file to your server, if you renamed the file test.htaccess then now rename the file on the Unix server which should not pose a problem.
Now, use a script to create the htpasswd file and that should be you..
If you cannot create the file, then let me know and I will give you an app to do this and then you can just upload this file to your server..
If you need any help, just ask..
Hope this helps Wullie