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.
http://test.com/admin/free_tmplt
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”?
Make a
.htacessfile in the folder and type indeny from all.