
Login to your hosting FTP account, and at the root you will find. htaccess file, and that will disable WordPress directory browsing. The only thing which you need to do is, add a single line of code (shared at the bottom) in your. If you are using Robots meta plugin, you can go to settings > Meta robots and edit your. For WordPress SEO by Yoast plugin, go to SEO > Edit files and you will be able to make changes in your file. htaccess file, but you can always use plugins to edit your file. Here I will be talking about FTP method to edit your WordPress. For Mac OS, you can use Cyber duck and for Windows OS, you can use FIleZila. Else, you need to use a FTP client to access your file server, and edit your. htaccess file from the WordPress dashboard. If you are using WordPress SEO by yoast plugin or Robots meta plugin, you can edit your. In this tutorial, I will be sharing how you can stop directory browsing in WordPress by using.

There are plugins like Disable directory listings which let you achieve it with the help of plugin, but as I keep recommending, it’s a good idea to get more work done without using a plugin. Adding to it more, a user can always browse your file structure, find what themes and plugins you are using. This also put your WordPress blog into danger, and make it prone to hacking. In most of the cases, a user can always browse your web directory, if he knows the location, and if you have not disabled directory browsing. A self hosted WordPress blog is usually hosted on a server, which also enables FTP browsing.
