I have some includes files and I don't want to expose them via HTTP. They are only used for being included into other PHP files.
Should I configure .htaccess
file and add some lines to specify that?
Thanks in advance...
I have some includes files and I don't want to expose them via HTTP. They are only used for being included into other PHP files.
Should I configure .htaccess
file and add some lines to specify that?
Thanks in advance...
You could use .htaccess rules or put them outside of your web directory!
EDIT:
It seems you are looking for an easy answer. You could have googled it, but here is one, try it:
<Files filename.php>
order allow,deny
deny from all
</Files>