How can I restrict direct access to every file that has .inc. in the file name? Basically I did that to point out that the specific file must only be included. Already using Apache and mod_rewrite for basic SEO purposes, by this goes a “bit” beyond my knowledge. .htaccess should somehow do the trick straight away, hopefully.
Share
Try this:
or this works too
This will give a permission denied.
Or you can also use a 404 page not found: