Thanks Ovid, I'll definetly look into CGI::Safe. I guess I included size of the upload problem as a reason for the password protection. I will only give passwords to the few people I want uploading to my computer.
I'll also look into the .htaccess files. Didn't even know they existed :)