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.
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.