{"id":410,"date":"2018-09-25T20:02:08","date_gmt":"2018-09-25T20:02:08","guid":{"rendered":"https:\/\/www.rochen.com\/docs\/?post_type=ht_kb&#038;p=410"},"modified":"2021-04-28T20:50:04","modified_gmt":"2021-04-28T20:50:04","slug":"disable-listings-for-a-specific-directory","status":"publish","type":"ht_kb","link":"https:\/\/www.rochen.com\/docs\/documentation\/disable-listings-for-a-specific-directory\/","title":{"rendered":"Disable Listings for a Specific Directory"},"content":{"rendered":"<p>If you don&#8217;t want anyone to see what files you have within a directory when no &#8216;index&#8217; file exists then you can turn off directory listings.<\/p>\n<p>To turn off directory listings, simply create a file called .htaccess containing the line of code listed below and place it within the directory you want them to be disabled for:<\/p>\n<h4>Options -Indexes<\/h4>\n<p>Using the following line of code within a .htaccess file allows for directory listings to be enabled.<\/p>\n<h4>Options +Indexes<\/h4>\n<p>They are however enabled by default on our servers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you don&#8217;t want anyone to see what files you have within a directory when no &#8216;index&#8217; file exists then you can turn off directory listings. To turn off directory listings, simply create a file called .htaccess containing the line of code listed below and place it within the directory&#8230;<\/p>\n","protected":false},"author":2,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[230],"ht-kb-tag":[249,248],"class_list":["post-410","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-general-use-and-troubleshooting","ht_kb_tag-htaccess-directives","ht_kb_tag-directory-listing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Disable Listings for a Specific Directory - Rochen Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rochen.com\/docs\/documentation\/disable-listings-for-a-specific-directory\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Disable Listings for a Specific Directory - Rochen Documentation\" \/>\n<meta property=\"og:description\" content=\"If you don&#8217;t want anyone to see what files you have within a directory when no &#8216;index&#8217; file exists then you can turn off directory listings. To turn off directory listings, simply create a file called .htaccess containing the line of code listed below and place it within the directory...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rochen.com\/docs\/documentation\/disable-listings-for-a-specific-directory\/\" \/>\n<meta property=\"og:site_name\" content=\"Rochen Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-28T20:50:04+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rochen.com\\\/docs\\\/documentation\\\/disable-listings-for-a-specific-directory\\\/\",\"url\":\"https:\\\/\\\/www.rochen.com\\\/docs\\\/documentation\\\/disable-listings-for-a-specific-directory\\\/\",\"name\":\"Disable Listings for a Specific Directory - Rochen Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rochen.com\\\/docs\\\/#website\"},\"datePublished\":\"2018-09-25T20:02:08+00:00\",\"dateModified\":\"2021-04-28T20:50:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rochen.com\\\/docs\\\/documentation\\\/disable-listings-for-a-specific-directory\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rochen.com\\\/docs\\\/documentation\\\/disable-listings-for-a-specific-directory\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rochen.com\\\/docs\\\/documentation\\\/disable-listings-for-a-specific-directory\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rochen.com\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Disable Listings for a Specific Directory\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rochen.com\\\/docs\\\/#website\",\"url\":\"https:\\\/\\\/www.rochen.com\\\/docs\\\/\",\"name\":\"Rochen Documentation\",\"description\":\"Official documentation for Rochen&#039;s web hosting services as well as helpful articles for CMS like WordPress, Joomla and Drupal.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rochen.com\\\/docs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Disable Listings for a Specific Directory - Rochen Documentation","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:\/\/www.rochen.com\/docs\/documentation\/disable-listings-for-a-specific-directory\/","og_locale":"en_US","og_type":"article","og_title":"Disable Listings for a Specific Directory - Rochen Documentation","og_description":"If you don&#8217;t want anyone to see what files you have within a directory when no &#8216;index&#8217; file exists then you can turn off directory listings. To turn off directory listings, simply create a file called .htaccess containing the line of code listed below and place it within the directory...","og_url":"https:\/\/www.rochen.com\/docs\/documentation\/disable-listings-for-a-specific-directory\/","og_site_name":"Rochen Documentation","article_modified_time":"2021-04-28T20:50:04+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.rochen.com\/docs\/documentation\/disable-listings-for-a-specific-directory\/","url":"https:\/\/www.rochen.com\/docs\/documentation\/disable-listings-for-a-specific-directory\/","name":"Disable Listings for a Specific Directory - Rochen Documentation","isPartOf":{"@id":"https:\/\/www.rochen.com\/docs\/#website"},"datePublished":"2018-09-25T20:02:08+00:00","dateModified":"2021-04-28T20:50:04+00:00","breadcrumb":{"@id":"https:\/\/www.rochen.com\/docs\/documentation\/disable-listings-for-a-specific-directory\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rochen.com\/docs\/documentation\/disable-listings-for-a-specific-directory\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.rochen.com\/docs\/documentation\/disable-listings-for-a-specific-directory\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rochen.com\/docs\/"},{"@type":"ListItem","position":2,"name":"Disable Listings for a Specific Directory"}]},{"@type":"WebSite","@id":"https:\/\/www.rochen.com\/docs\/#website","url":"https:\/\/www.rochen.com\/docs\/","name":"Rochen Documentation","description":"Official documentation for Rochen&#039;s web hosting services as well as helpful articles for CMS like WordPress, Joomla and Drupal.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rochen.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.rochen.com\/docs\/wp-json\/wp\/v2\/ht-kb\/410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rochen.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.rochen.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.rochen.com\/docs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rochen.com\/docs\/wp-json\/wp\/v2\/comments?post=410"}],"version-history":[{"count":1,"href":"https:\/\/www.rochen.com\/docs\/wp-json\/wp\/v2\/ht-kb\/410\/revisions"}],"predecessor-version":[{"id":1692,"href":"https:\/\/www.rochen.com\/docs\/wp-json\/wp\/v2\/ht-kb\/410\/revisions\/1692"}],"wp:attachment":[{"href":"https:\/\/www.rochen.com\/docs\/wp-json\/wp\/v2\/media?parent=410"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.rochen.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=410"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.rochen.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}