I have written a small PHP package/site-template (should I say).
It contains a directory data/ that contains some important files that the users should not be able to see.
These file should however be accessible by my PHP scripts. Now ,the question is how can I prevent users from accessing a particular directory on the web.
Can I do this using .htaccess file? If yes, how?
If in case the user is not using Apache, but some other server like nginx or IIS or any other server for that matter. Is there a portable way to do this?