Health & Fitness
Free SEO Tools
Free Keyword Search
Guest Posting List
Guide & Reviews
Last updated on September 05th, 2021
How to disable directory browsing in WordPress
Leave a Reply
To leave a comment, please
1 year ago
Disabling it is not a difficult task. All you need to do is add one line of code to your .htaccess file. This .htaccess file is found in the root folder of your site.
To edit it, first login to your hosting's cPanel. After that go to the root directory. Here you will see your .htaccess file.
Apart from this, you can edit the .htaccess file by connecting your site to FTP.
You have to paste the below code in your .htaccess file.
Click on the Save changes button to store the changes made in the .htaccess file.
Congratulations! You have disabled Directory Browsing on your site.