@vinnie
To block a directory with .htaccess, follow these steps:
1
|
Options -Indexes |
This code will prevent directory listing.
1
|
Deny from all |
This code will deny access to the directory.
Note: Make sure you have access to the server's configuration files or have the AllowOverride directive set to "All" in the server configuration. Otherwise, .htaccess files may be ignored.