How To Block Access To The Wp-Content Uploads Folder | Disable Directory Browsing in WordPress

How To Block Access To The Wp-Content Uploads Folder | Disable Directory Browsing in WordPress

If your WordPress website's Directory Browsing (listing) show is happening then it is very important to secure it, if you are visiting your Web Directory Directory Browsing Show, then anyone can download your data, today I will tell you that you How to block access to Directory Browsing.

First you have to login to Cpanel, after that, open the file manager, then open .htaccess, and add  Options -indexes to the end.

htaccess

 

 

htaccess

 

Options -indexes Adding this line will hide the directory listing of your WordPress website, you will get a 403 Forbidden error.