I have a web application developed in PHP.
My requirement is to block a folder which contains uploaded documents.
For example, if a user click a document link on the application, it should open
if a user execute below url, it should block
I've tried .htaccess with Deny from all, but it is blocking everything.
Any solution for this senario ?
personnally I prefer the 2nd line. There hardly ever is use for automatical listing of the files to a browsing visitor.