In the script I'm using, I find that most directories don't have an .htaccess file to prevent unwanted scripts from running or even index.html file to prevent browsing of the dir.
I find adding those files on an individual directory basis very time consuming and tired.
I would like to have a rule, or set of them, in .htaccess that'll allow me to block every PHP script from being accessed directly via URL, except a couple of index.php files that seem to be all that's needed to run the website.
Is there a way to achieve this?
Thanks!
I find adding those files on an individual directory basis very time consuming and tired.
I would like to have a rule, or set of them, in .htaccess that'll allow me to block every PHP script from being accessed directly via URL, except a couple of index.php files that seem to be all that's needed to run the website.
Is there a way to achieve this?
Thanks!
Comment