How can I protect files in a folder in a PHP site?
<p>I'm using PHP. What I need is to protect the folder files from listing the file names when we enter the path for the folder. </p>

<p><a href="http://test.com/admin/free_tmplt" rel="nofollow">http://test.com/admin/free_tmplt</a></p>

<p>This is my folder path and when I use this path directly it display the file names. How to avoid this and display a message like "Protected page"?</p>
