I have been trying to add htpasswd authentication to my wordpress blog for all pages. So that when a person tries to view a page he has to be a valid-user. I tried adding the following snippet to my .htaccess file but it does nothing.
<Files *>
AuthUserFile /usr/local/apache/passwords
AuthName "Private access"
AuthType Basic
require valid-user
</Files>
Is it really possible with wordpress sites? I searched online and found people protecting wp-login.php with .htpasswd but not the other pages.
Please help.