HI in this article I will be shown how to access the WordPress Uploads folder without and password and how to prevent this access
In this case, I will apply my own website
if your website has vulnerable it should look like below
Simply type website URL and then /wp-content-uploads
You can see all the files and folders. Now we will deny accessing this folder using .htaccess
First, you have to go to your Cpanel and find the .htaccess file and paste the below code
After saving the .htaccess file you should set read permission only for your htaccess file.
Whenever you modify your
.htaccess file, you should always check that your website still works after uploading it. And if you don’t have Cpanel access you should backup first. Using WP File manager plugin you can get all the files.
Thanks for reading….
4 thoughts on “How to Prevent a Directory Listing of Your WordPress Website with .htaccess”
Hey! Do you use Twitter? I’d like to follow you if that would be okay.
I’m absolutely enjoying your blog and look forward to new updates.
Very well written post. It will be useful to anyone who employess it, including me. Keep doing what you are doing – looking forward to more posts.