Author Topic: How to configure htaccess file for No Index  (Read 285 times)

Online certforumz

  • Cert Exams
  • Administrator
  • Hero Member
  • *****
  • Posts: 827
  • Ask me a question ...
    • CertExams - CCNA, A+, Network+, and Others
How to configure htaccess file for No Index
« on: July 07, 2017, 07:16:42 AM »
Often, it is recommended to prevent visitors from viewing the contents of your website directories. Just remember security through obscurity. If a visitor is not able to view which files are there in a web directory, it would be a little difficult to hack the website. Use the following command for preventing directory listing on a website:

Options -Indexes

Reference: https://www.thesitewizard.com/apache/prevent-directory-listing-htaccess.shtml