Skip to main content
Keep your business open during COVID-19Learn More
Call us
Phone numbers and hours
Help Center

Explore our online help resources

We are experiencing high volume today, and as a result, you may experience longer than usual wait times.
BlogHelp

GoDaddy Help

Disable directory browsing

Directory browsing allows anyone to see all the files in a folder and their contents. To help secure your site, you'll want to use your hosting's file manager to edit the files.

  1. You should always backup your site before making any changes.
  2. Navigate to the different folders of your website (ex. http://coolexample.com/wp-content) in your browser to see if a list of files is displayed instead of a web page.
  3. If you don't find any folders that are displaying file lists, there are no further steps for you to follow.
  4. Access the File Manager for your hosting plan. (Web Hosting / cPanel / Plesk)
  5. Navigate to the folder that displayed a directory listing.
  6. Edit the .htaccess (Linux) or web.config (Windows) file.
    • Linux: at the top of the .htaccess file, insert the following line:
      Options -Indexes
    • Windows: in the web.config file, find and remove the following line:
      <directoryBrowse>
  7. Save the changes to your file.

You have now disabled directory browsing. If you are still able to browse the directory in your browser, you will want to consider clearing your browser cache, trying another browser, or review the steps again for accuracy.

More info

Community Related

colonus's Avatar
remove .php .html extension Ultimate Hosting linux

1 Replies

Last posted about 2 years ago.

Vladislav's Avatar
Disable php engine in a specific directory

1 Replies

Last posted over 3 years ago.

kemnet's Avatar
Cannot browse to domain and folders, only subdomains.

5 Replies

Last posted almost 5 years ago.

mckenzie's Avatar
Plugin upload and File extract issue

2 Replies

Last posted over 4 years ago.

Don't see what you are looking for? Search the Community