I'm making a website for a client, and I want to make a password protected directory. The problem is my account type only allows FTP, so is there any way to create the .htaccess and .htpasswd files locally on my computer so I can upload them via FTP?
UPDATE:
I made the files on the site @radius mentioned, and I uploaded and renamed them, but now I'm getting the following message:
"The server encountered an internal error or misconfiguration and was unable to complete your request"