Here's what the map of my website looks like:
root: -index.php -\actions\ (various php files inside and a .htaccess) - \includes\ (various php files inside and a .htaccess) - .htaccess
I know that if I use "deny from all" in actions and include directories, the files in them will be protected from direct access.
Now my actions folder contains many php files that index.php (forms) calls. I have "deny from all" in .htaccess inside \actions , but then I have restricted access to these files.
So, how can I protect files from direct access to the url, but has an exception that can be called from index.php ?
source share