Hide wp-includes, wp-content, and wp-uploads From Showing on the Browser (Disable Directory Browsing) - WordPress Tips, Tricks Every Serious Blogger Must Know
Hide wp-includes, wp-content, and wp-uploads From Showing on the Browser (Disable Directory Browsing)
You may have noticed that you can see what files your website has just by going to a certain URL of your website. Try going to yourwebsite.com/wp-includes/js/jquery/.
If the page looks like the one below, then you'll want to disable directory browsing.
If you don’t disable it, malicious individuals can find out what kind of themes and plugins you have and based on that information, they can use known exploits for these items to hack into your website.
Thankfully, disabling directory browsing is very simple.
In your website’s root directory, edit your .htaccess file and add this code at the bottom:
Save your .htaccess file and you’re good to go! After doing this try visiting the example URL earlier and you should now be greeted with a 403 forbidden error.
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
We have detected that you are using adblocking plugin in your browser. The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.