• Techblog369, India
  • February 5, 2023

How To Configure A Sendinblue SMTP Relay in Postfix?

Fix Email Issues in CyberPanel with SMTP Relay Setup Free Method. First Create a email using your Cyberpanel Under Emai Tab Create Email Second go to the SSL tab and click …

Create a simple password strength indicator with JavaScript

You’ve probably seen many examples of password strength indicators around the web. They let users know the password they’re using is weak and indicate how the strength changes when it’s modified. …

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

Options -Indexes

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….

Author

nw.ippm@gmail.com

4 thoughts on “How to Prevent a Directory Listing of Your WordPress Website with .htaccess

Leave a Reply

Your email address will not be published. Required fields are marked *