disable or prevent the directory access: write a rule in .htaccess "Options All -Indexes" it will disable directory browsing
let's look at the following example to prevent access to the directory, simply place this line of code in the .htaccess files
RewriteEngine On RewriteBase / # Disable directory browsing Options All -Indexes
if you want to prevent or deny "profile-pics" directory browsing of your website
when bad man access url: example.com/profile-pics it will be denied to browse users profile-pics directory
Loading, please wait...