Prevent Directory Listing Using .htaccess

Last Updated: April 10, 2018By Tags: , , ,

Create a .htaccess file by opening a new text document using notepad and saving it as “.htaccess”. must include the quotation marks so that notepad won’t give it an extension of .txt automatically. Or you can create a .txt file and rename it to .htacess

Add this words to your txt document.

Options -Indexes.

Then save.

And upload it to the directory you want to restrict listing.

This will prevent user from seeing all files on your web server directory.

editor's pick

    latest video

      For Lighthouse Baptist Church

      Created by: Paula Aduna

    news via inbox

    Nulla turp dis cursus. Integer liberos  euismod pretium faucibua

    you might also like

      http://www.google.com/finance/converter

       

      select currency

      http://www.google.com/finance/converter?&from=SGD&to=USD

      Did this fix work for you?

      Be the first to confirm this fix.

      http://www.google.com/finance/converter

       

      select currency

      http://www.google.com/finance/converter?&from=SGD&to=USD

      Did this fix work for you?

      Be the first to confirm this fix.

      http://www.google.com/finance/converter

       

      select currency

      http://www.google.com/finance/converter?&from=SGD&to=USD