{"id":6140,"date":"2021-01-23T15:08:48","date_gmt":"2021-01-23T15:08:48","guid":{"rendered":"https:\/\/websiteroof.com\/?post_type=epkb_post_type_1&p=6140"},"modified":"2021-01-23T15:08:48","modified_gmt":"2021-01-23T15:08:48","slug":"how-to-disable-directory-browsing-using-htaccess","status":"publish","type":"epkb_post_type_1","link":"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/","title":{"rendered":"How to disable directory browsing using .htaccess?"},"content":{"rendered":"

For security purposes, we recommend that you disable directory browsing on your website so no one can see the files\/folders of your website.
\nYou can disable Directory Browsing by adding this line to your .htaccess<\/strong> file.<\/p>\n

Options -Indexes<\/p>\n","protected":false},"excerpt":{"rendered":"

For security purposes, we recommend that you disable directory browsing on your website so no one can see the files\/folders of your website. You can disable Directory Browsing by adding this line to your .htaccess file. Options -Indexes<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"epkb_post_type_1_category":[1116],"epkb_post_type_1_tag":[1073],"yoast_head":"\nHow to disable directory browsing using .htaccess | Websiteroof<\/title>\n<meta name=\"description\" content=\"How to disable directory browsing using .htaccess. You can disable directory browsing using .htaccess by following these steps.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to disable directory browsing using .htaccess | Websiteroof\" \/>\n<meta property=\"og:description\" content=\"How to disable directory browsing using .htaccess. You can disable directory browsing using .htaccess by following these steps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/\" \/>\n<meta property=\"og:site_name\" content=\"Websiteroof\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/websiteroof\" \/>\n<meta property=\"og:image\" content=\"https:\/\/websiteroof.com\/wp-content\/uploads\/2020\/02\/Best-Domain-Hosting.png\" \/>\n\t<meta property=\"og:image:width\" content=\"466\" \/>\n\t<meta property=\"og:image:height\" content=\"243\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@websiteroof\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/\",\"url\":\"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/\",\"name\":\"How to disable directory browsing using .htaccess | Websiteroof\",\"isPartOf\":{\"@id\":\"https:\/\/websiteroof.com\/#website\"},\"datePublished\":\"2021-01-23T15:08:48+00:00\",\"dateModified\":\"2021-01-23T15:08:48+00:00\",\"description\":\"How to disable directory browsing using .htaccess. You can disable directory browsing using .htaccess by following these steps.\",\"breadcrumb\":{\"@id\":\"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/websiteroof.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to disable directory browsing using .htaccess?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/websiteroof.com\/#website\",\"url\":\"https:\/\/websiteroof.com\/\",\"name\":\"Websiteroof\",\"description\":\"The Best Canadian Web Hosting | Web Hosting Canada | Websiteroof\",\"publisher\":{\"@id\":\"https:\/\/websiteroof.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/websiteroof.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/websiteroof.com\/#organization\",\"name\":\"Website Roof Inc\",\"url\":\"https:\/\/websiteroof.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/websiteroof.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/websiteroof.com\/wp-content\/uploads\/2020\/02\/websiteroof-logo-1024-1204.png\",\"contentUrl\":\"https:\/\/websiteroof.com\/wp-content\/uploads\/2020\/02\/websiteroof-logo-1024-1204.png\",\"width\":1024,\"height\":1024,\"caption\":\"Website Roof Inc\"},\"image\":{\"@id\":\"https:\/\/websiteroof.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/websiteroof\",\"https:\/\/twitter.com\/websiteroof\",\"https:\/\/instagram.com\/websiteroof\",\"https:\/\/www.linkedin.com\/company\/websiteroof\",\"https:\/\/www.pinterest.ca\/websiteroof\",\"https:\/\/www.youtube.com\/channel\/UC92SLTmmx09YHQHev0lXOUg\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to disable directory browsing using .htaccess | Websiteroof","description":"How to disable directory browsing using .htaccess. You can disable directory browsing using .htaccess by following these steps.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/","og_locale":"en_US","og_type":"article","og_title":"How to disable directory browsing using .htaccess | Websiteroof","og_description":"How to disable directory browsing using .htaccess. You can disable directory browsing using .htaccess by following these steps.","og_url":"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/","og_site_name":"Websiteroof","article_publisher":"https:\/\/www.facebook.com\/websiteroof","og_image":[{"width":466,"height":243,"url":"https:\/\/websiteroof.com\/wp-content\/uploads\/2020\/02\/Best-Domain-Hosting.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@websiteroof","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/","url":"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/","name":"How to disable directory browsing using .htaccess | Websiteroof","isPartOf":{"@id":"https:\/\/websiteroof.com\/#website"},"datePublished":"2021-01-23T15:08:48+00:00","dateModified":"2021-01-23T15:08:48+00:00","description":"How to disable directory browsing using .htaccess. You can disable directory browsing using .htaccess by following these steps.","breadcrumb":{"@id":"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/websiteroof.com\/knowledgebase\/hosting\/security\/how-to-disable-directory-browsing-using-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/websiteroof.com\/"},{"@type":"ListItem","position":2,"name":"How to disable directory browsing using .htaccess?"}]},{"@type":"WebSite","@id":"https:\/\/websiteroof.com\/#website","url":"https:\/\/websiteroof.com\/","name":"Websiteroof","description":"The Best Canadian Web Hosting | Web Hosting Canada | Websiteroof","publisher":{"@id":"https:\/\/websiteroof.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/websiteroof.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/websiteroof.com\/#organization","name":"Website Roof Inc","url":"https:\/\/websiteroof.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/websiteroof.com\/#\/schema\/logo\/image\/","url":"https:\/\/websiteroof.com\/wp-content\/uploads\/2020\/02\/websiteroof-logo-1024-1204.png","contentUrl":"https:\/\/websiteroof.com\/wp-content\/uploads\/2020\/02\/websiteroof-logo-1024-1204.png","width":1024,"height":1024,"caption":"Website Roof Inc"},"image":{"@id":"https:\/\/websiteroof.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/websiteroof","https:\/\/twitter.com\/websiteroof","https:\/\/instagram.com\/websiteroof","https:\/\/www.linkedin.com\/company\/websiteroof","https:\/\/www.pinterest.ca\/websiteroof","https:\/\/www.youtube.com\/channel\/UC92SLTmmx09YHQHev0lXOUg"]}]}},"_links":{"self":[{"href":"https:\/\/websiteroof.com\/wp-json\/wp\/v2\/epkb_post_type_1\/6140"}],"collection":[{"href":"https:\/\/websiteroof.com\/wp-json\/wp\/v2\/epkb_post_type_1"}],"about":[{"href":"https:\/\/websiteroof.com\/wp-json\/wp\/v2\/types\/epkb_post_type_1"}],"author":[{"embeddable":true,"href":"https:\/\/websiteroof.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/websiteroof.com\/wp-json\/wp\/v2\/comments?post=6140"}],"version-history":[{"count":1,"href":"https:\/\/websiteroof.com\/wp-json\/wp\/v2\/epkb_post_type_1\/6140\/revisions"}],"predecessor-version":[{"id":6141,"href":"https:\/\/websiteroof.com\/wp-json\/wp\/v2\/epkb_post_type_1\/6140\/revisions\/6141"}],"wp:attachment":[{"href":"https:\/\/websiteroof.com\/wp-json\/wp\/v2\/media?parent=6140"}],"wp:term":[{"taxonomy":"epkb_post_type_1_category","embeddable":true,"href":"https:\/\/websiteroof.com\/wp-json\/wp\/v2\/epkb_post_type_1_category?post=6140"},{"taxonomy":"epkb_post_type_1_tag","embeddable":true,"href":"https:\/\/websiteroof.com\/wp-json\/wp\/v2\/epkb_post_type_1_tag?post=6140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}