How can you deny direct access to files in a directory where I do not want users to access it directly but allow the server/localhost to access because the directory I am trying to avoid direct access contains HTML files that gets output/parsed by PHP.
The listing of the directory looks like this:
template
|
|
+--------> acp
| |
| +------> acp_index.html
| +------> acp_settings.html
|
+--------> css
| |
| +------> stylesheet.css
|
+--------> js
| |
| +------> scripts.js
|
+---> index.html
+---> login.html
+---> etc...
In the template/acp
I need to avoid direct access to files, but localhost/the server should be able to access and parse it.