htaccess deny files in directory code example
Example 1: deny directory listing htaccess
# Place the following in your .htaccess at doc root
Options -Indexes
Example 2: htaccess deny access to a file
<Files "adminbar.php">
Order Allow,Deny
Deny from all
</Files>