Real-time Setup: Fully automated domain and web hosting services.

Now Hosting Over 50,000 Domain Names!        

Accredited in Kenya, Rwanda, Nigeria & South Africa.

Kenya's Largest Domain Registar - 2021 KeNIC Report


0722 209 414 | 0733 367 596
info@kenyawebexperts.co.ke

 
 
 

Knowledgebase

Portal Home > Knowledgebase > cPanel > Disable Directory Browsing Kenya

Disable Directory Browsing Kenya Print

  • 1

If you have shared hosting many of your files are open to inspection by anyone who has an interest.

This includes files you are using for redirects, images, pdf™s, etc.

The reasons to disable your directory browsing is for privacy of course, but it will also help protect your site against hackers because it will hide your files making you less vulnerable to attack. You are more susceptible to hackers if they can see your themes, plugin™s etc. Often hackers are looking for a particular theme or plugin because they have already found a way to exploit it.

The directory is the default page the web server will go to if you don™t have an index file directing otherwise. Here is a sample of what a directory tree of your website will look like.

website file directory example

How to Disable Directory Browsing in cPanel

This works like a charm for your shared hosting with cPanel.

Step 1.
Log in to your cPanel

Step 2.
Click on Index Manager

disable directory cpanel index manager

Step 3.
The directory tree will display. Select what level or folder you want disabled.
If you want to disable the entire site then select œUp One Level and select the domain.

disable directory on selected folder

Step 4.
Select No Index and SAVE.

no indexing selection for to disable directory

Step 5.
That should do it. Now when someone tries to access your files they will see a œ403 Forbidden HTTP status code notice that will tell the user your files are not accessible.


Was this answer helpful?

« Back

Our official partners

The Best Web Hosting Company in Nairobi, Kenya.

Kenya Website Experts Ltd is the Largest Web Hosting Company in Kenya, our core focus is helping and empowering businesses & organizations online. Thousands of customers rely on our domains and web hosting to get their ideas online. We offer everything you need to create an effective & successful online presence backed by expert, personalized customer support. We offer ultra fast, reliable, affordable and secure website hosting services, email hosting, cloud hosting and SSL certificates. We make registration of Kenyan domain names (.co.ke, .or.ke .ac.ke) and international domains (.com, .org, .net) fast, simple, and secure. Our expert team is always on hand to help answer your questions, get you started, and grow your presence online. We deliver on performance, security, reliability and customer service day in, day out, and we’re a trusted partner.

 

Get everything you need for Online Prosperity.