I'm trying to block all files in a particular directory with the exception of .js , .jpg , .css , .gif , .png .
I have this code, but it is not working the way I want it to be:
<Files ~ "\.(jpg|jpeg|png|gif|css|js)$">
order deny,allow
allow from all
</Files>
Could someone guide me where I'm wrong?