Reputation: 23011
I have a folder that I want to restrict access to, except I want several files with the same beginning to be accessible by everyone. I already have the blocking, but I can't seem to get the allow files to work. This is what I have:
order deny,all
deny from all
allow from 127.0.0.1
#There's several lines of real IPs here
<FilesMatch "^myfiles*\.php$">
order Allow,Deny
Allow from all
</FilesMatch>
Is the order wrong, or something else?
Upvotes: 0
Views: 125
Reputation: 785128
I believe regex is not correct, try:
<FilesMatch "myfiles.*?\.php$">
Satisfy any
order Allow,Deny
Allow from all
</FilesMatch>
Upvotes: 1