Well, firstly, as long as you do not allow PUT headers, you need not worry much with Apache. One thing you can do is drop an .htaccess file into your web root. Then, in that file, place a couple of directives like this example;
AuthName "My Website!"
AuthType Basic
AuthUserFile ../.htpasswd
<LimitExcept GET POST HEAD>
require valid-user
</LimitExcept>
Then use the Apache tool htpasswd.exe to create a password (.htpasswd) file with the users you would like to allow the filtered header commands such as PUT.
The other alternative is if you are writing files from PHP, through a POST command, which is a dangerous concept, you WILL need to code your own authentication checking. Apache does, in fact, see everyone as the service for which it has started. Hopefully, the system administrator has not given Apache root level access or beware.
Hope this helps.
Matthew Pirvul
eAccounts.NETwork