How would I block all files from being served by Apache except those with certain file extensions?
E.g. - allow only .htm, .png, .gif, .jpg, .css, .js
But ban all others?
I think it's done through a regex in the Filesmatch directive - but I have no idea how to do it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.