WordPress For Non-Techies

How to Disable Directory Browsing in WordPress

Rate this post



If your webserver does not find an index file it automatically displays an index page showing the contents of the directory. This makes your site vulnerable to hacks by showing the information needed to get into your theme or a plugin. In this video, we will show you how to disable directory browsing in WordPress.

If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.

Text version of this tutorial:

Follow us on Twitter:

Checkout our website for more WordPress Tutorials

Summary of this Tutorial:

Start by connecting to your site using FTP.

You will need to edit your .htaccess file in the root directory of your site found in your root directory.

If you do not see the file you will need to tell your FTP client to show hidden files.

Download your .htaccess and open it in a text editor like notepad and add the following to the bottom:

“Options -Indexes”

Then save the file and reupload it to your server with your FTP client.

source

Mazi

Mazi has nine years of web development experience with the past five years spent honing his skills with WordPress plugins and themes. He's an expert in WooCommerce and is the author of the Simple Sales Tax plugin, a popular sales tax compliance solution for WooCommerce. Brett understands the importance of excellent communication, prides himself on producing high-quality code, and is comfortable working solo or as part of a team.

Leave a Reply

Your email address will not be published.

Back to top button