[.htaccess] <FilesMatch> how does it work?

Hi there,

I want to secure only my .php and html files in a directory… Now I found out that I can do this using .htaccess and the FilesMatch directive… Only I don’t really know how this works…

this is my .htaccess:

<FilesMatch “.(htm|html|php)$”>
AuthUserFile /dir/.htpasswd
AuthGroupFile /dev/null
AuthName “Password Protected Area”
AuthType Basic
<limit GET POST>
require valid-user
</limit>
</FilesMatch>

The problem is that I doesnt popup such a nice box where I can input my username and password… Anybody know whats wrong?