How to Disable Directory Browsing in WordPress

Are you WordPress user?

If you are a WordPress user check this www.yourdomain.com/wp-content/uploads/. what you can see if you can see your directory.  By default when your web server does not find an index file (i.e. a file like index.php or index.html), it automatically displays an index page showing the contents of the directory.

If a hacker gets your directory information they can hack your site easily. In this post, I share about how to disable directory browsing in WordPress. If you want to know it read this article step by step.

read:

How to Disable Directory Browsing in WordPress

Why You Need to Disable Directory Browsing in WordPress

Recently WordPress is the most popular CMS in the overworld, recently maximum professionals blogger and online business owner using WordPress because it is very easy to use and it is opensource. WordPress is a very secure platform but it is not hacking proof.

Hackers are always looking for vulnerable blogs to attack. If you have to enable directory browsing in WordPress hacker can find out about your information example theme, plugin and others hosting root information if hackers can find out information about your WordPress site if any of them contain security holes they can exploit to break into your blog.

How to Disable Directory Browsing in WordPress

Disable Directory Browsing in WordPress is a very easy step, you can use a security plugin or you can use a manual system. Here I share about How to Disable Directory Browsing in WordPress manually. If you want to  Disable Directory Browsing in WordPress here are two methods 1 using FTP and 2 is forme Hosting Cpanel using FTP is secure.

How to Disable Directory Browsing in WordPress login cpanel

step1: login your web hosting panel example yourdomain.com/cpanel

Disable Directory Browsing in WordPress

 

step2: got to file manager and open your WordPress site  root folder and open your WordPress site root folder

Disable Directory Browsing in WordPress 2

step 3: find out.  .htaccess file and edit this file if you can’t find this file go to setting option and click show hidden files option and click save

Note: at first backup your WordPress .htaccess before editing  

Disable Directory Browsing in WordPress 3

 

step 4:  Add this below code  below #End WordPress and click save change button

Options -Indexes

Final thought

If this post is helpful for please share this post. If you have any question about Disable Directory Browsing in WordPress or about this blog comment below.

 

Arif Hossain
 

Hi, my name is Arif Hossain, I am a part-time blogger, and blogging is my hobby, I am a professional web designer. I share useful blogging tips to make bloggers' journey easier. I love to help newbie bloggers to build a better blog. You can connect with me on Facebook , Twitter , or Google+. Read more about me here.

Click Here to Leave a Comment Below 0 comments