Well my server is Unix, so I guess that's good. Everywhere I go to find out how to lock a particular file, it gives me this code:
<Files index.php>
Order deny,allow
AuthType Basic
AuthName "my site name"
AuthUserFile "password file location"
Require valid-user
</Files>
It works, but it doesn't prompt to enter a username and password. It just goes straight to the 401 error. I really only need this page to be locked, which would be convenient so it doesn't keep prompting for every damn subdirectory it has to access.