.htaccess to restrict access to only select files
- by Bryan Ward
I have a directory in my webserver for which I would like to serve up only pdf files. I found I can restrict access using the .htaccess, and using something like
<FilesMatch "\.(text,doc)">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
to serve up everything except a regular expression. Is it possible to instead restrict access to only files which meet some regular expression?