I'm having problem with htaccess. what I want to do is when a user accessed my folder named images
from a browser I want to restrict it, but when accessing image files inside it, I want to display the image in the browser. Tried the following code but no success.
<FilesMatch "\.(gif|jpe?g|png|pdf)$">
Allow from all
</FilesMatch>
<Directory>
Order deny,allow
Deny from all
</Directory>
So, can you please suggest something?