• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Skip to footer

Big Business Inside

Big Marketing Solutions for Small Business

  • Digital Solutions
  • Traffic Generation
  • Marketing Strategies
    • Business Coaching
  • Lead Acquisition
You are here: Home / Tools & Resources / How to Disable Directory Browsing / Disable Directory Browsing

Disable Directory Browsing

Q: How do you keep people from stealing your reports, images, and other files you have stored on your hosting server? A: By disabling access to your websites directory.

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.

403 forbidden when directory disabled

.htaccess Method to Disable Directory Website Listings for Blogs

If you don’t mind altering files then you can simply add one line to your .htaccess file.**

Step 1.
Log into your hosting or connect via FTP.

Step 2.
Download the .htaccess file

Step 3.
Open in a plain text editor.

Step 4.
Just add this line at the bottom.

Options -Indexes

htaccess method to disable directory

Step 5.
Upload new .htaccess file

In many hosting companies you can do the edit online with your hosting companies editor.

**Cautionary Note when Messing with Files

I always save the old file under a different name by adding a prefix – just in case I screw up. Which I tend to do from time to time.

For example I would save the old .htaccess file as OLD010214htaccess. Now you have recorded the date of the change as well as knowing I have a working backup.

Filed Under: How to Disable Directory Browsing Tagged With: disable directory browsing in hostgator, disable website directory browsing, how to Updated October 8, 2022
AdBBi participates in Affiliate Partnerships and earns from qualifying purchases.

Primary Sidebar

Most Successful Home Business Ideas

FREE! Step-By-Step Formula Guide to Starting, Growing, & Profiting from a Home-Based Business Today!

*IMPORTANT* Your information is safe. We do NOT sell or share your email with anyone

Need Something?

How to Market Your BusinessLost? Have a Question? Just Ask!

Local Business Blog

» Finding the Right Business Niche
» Fast-Track Keywords
» Email Marketing – Ultimate Cheat Sheet!
»Who Does SEO like a Genius?
» Shocking Reasons for High Email Bounce
» Ultimate Guide to Free Traffic
» The Secret Life of Link Builders

Resource Toolbox

onlinemarketersresourcetoolbox

Useful Stuff

Why Amazon?
List Building
Random Stuff
SEO

Tools & Resources
Website Traffic
How to...
Email Marketing

Social Media Marketing
Small Business Ideas

Footer

The Solution: 5-Step Online Market Domination

Become the #1 authority online in your market.
You’re THE authority, your business is EVERYWHERE online, and people choose you over your competitors.
1.Get Listed Get listed in the Big 3 (Google Local, Yahoo Local, MSN/Bing Local)
2. Dominate Your site appears in local, natural, and paid search results.
3. Move Up Dominate the front page by making your site search engine-friendly.
4. Lead the Pack Use videos, press releases, articles, social content sites, online classifieds, online business directories, and online review sites to make the search engines fall in love with your site.
5. Your Phone Rings Off The Hook Your customers can find you—and you see the results in your increased profitability.

How Easy Can Customers Find You Online?

We will build for you a solid web presence for your small business, including; promotional and branding packages, social media, graphic designs, affordable and attractive websites.

Do it Yourself Web Service

Full training and support for the do it yourself entrepreneur.

Let’s Look at the Numbers:

Let’s say…
• 50,000 people are looking for your services each month.
• If you can get even 10% to come to YOUR site, that’s 5,000 visitors a month.
• If only 5% of that traffic CALLS you about your services, and only 25% of them buy… that’s 62 NEW customers in a month.
• If your customer value is $1,000… that’s $62,000 more in your pocket every month!

Your online domination begins with a 30 minute FREE CONSULTATION (valued at $250), where we’ll assess your current site, estimate your available traffic, and customize an initial go-forward plan for optimizing your site and creating a stream of online traffic to get your phones ringing.

Click this link NOW for your free consultation!

Why Mobile? More Business.

For most small brick & mortar business’s – going mobile can have a BIG impact on your income and market share. There are several ways you can use peoples phones to create a larger customer base and generate income “on demand”!

Social Media For Your Business

Social media marketing can be the most powerful and inexpensive marketing avenue available to any business regardless of how big or small you are. Through proper Social Media Management you can accelerate your business growth.

Make Google Work for YOU

When it comes to being online its really easy to put up a web page that just ends up getting lost. The good news is there are ways to make Google and other Search Engines do the work of getting good qualified leads and customers FOR you!

PPC Ads Paid Web Traffic

Paid advertising with PPC is the best way to get the targeted traffic you want. Its also a good way to lose a lot of cash. Fast! Full keyword research is necessary before beginning any pay per click campaign for proper bidding strategies and ad performance.

Be a Rockstar! Building Your Brand

If you are new to your business or just have never built an effective brand before do you know where to start? Branding you and your company can help make you irresistible to a potential client, position you as an authority, and attract a new following.

Get More Customers – Automatically!

Your customers are looking for you Online – Can They Find You?
Over 1 BILLION local searches every month (and growing 50% every year)
80% of buyers search online FIRST, vs. using the yellow pages or other print methods

2 out of 3 people use Google to find businesses online. Can they find you even if they don’t know your business’ name?

Here’s how people click:
#1 ranked site gets 41% of the clicks
#2 ranked site gets 12% of the clicks
#3 ranked site gets 8.5% of the clicks

If you’re not in Google’s top 3, your competitors are getting YOUR clicks.

Need a Website? That’s EASY!

If you don’t have a website for your business you really do need one. It is your shop, and your representative that never sleeps. 24/7 a website works hard to collect leads and service customers. Even as you sleep. Take the steps today to find out why you really should be online.

RSS Local Business Marketing News

  • How to Delete Hidden Files ALREADY Deleted from iCloud Drive
  • Protected:
  • How to “UnLike” an Inactive Facebook Page SUCCESSFULLY
  • How to Download Password Protected Wistia Videos
  • How to delete a Website from Webmaster

Footer CTA

Start Making Money TODAY!

Step-By-Step Home Business Start-Up Guide

Discover how to get started for FREE and make money TODAY. Find out how to speed up getting customers and set top dollar rates. Never worry again about being asked to work for free!

Inside the book are well guarded SECRETS that can grab the attention of your target market. Find out where your PAYING customers are. Choose who YOU want to do business with and set YOUR price. How to advertise for pennies or for FREE. Find out how you can stand apart from your competitors and DEMAND higher pricing!

Choose Your Preferred Target Market - no more price dropping to get customers. This method lets you set the pricing you want and get customers HAPPY to pay you what you are worth. Using THIS small business marketing techniques you can "clone" your ideal client, over and over again.

Here is EXACTLY what you can do to have them lining up for your service. This combination method is cleverly designed to turn prospects into paying customers.

*IMPORTANT* Your information is safe. We do NOT sell or share your email with anyone

  • DCMA Notice
  • Comments Policy
  • Privacy Policy
  • Disclaimer
  • Terms of Use
  • About
  • Compensation Disclosure
  • Visitors

Copyright © 2025 · Big Business Inside