{"id":2377,"date":"2021-09-27T13:15:16","date_gmt":"2021-09-27T13:15:16","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=2377"},"modified":"2021-09-28T04:48:09","modified_gmt":"2021-09-28T04:48:09","slug":"how-to-stop-a-directory-index-from-being-shown","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/how-to-stop-a-directory-index-from-being-shown\/","title":{"rendered":"How to Stop A Directory Index From Being Shown"},"content":{"rendered":"<p>Sometimes, for one reason or another, you&#8217;ll don&#8217;t have any index file in your directory.<br \/>\nThis will, of course, mean that if somebody type the directory name into their browser, a full listing of all the files in that directory are going to be shown, that may be a security risk for your website.<br \/>\nTo prevent against this (without creating ample new &#8216;index&#8217; files), you&#8217;ll be able to enter a command into your .htaccess file to prevent the directory list from being shown: Options -Indexes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes, for one reason or another, you&#8217;ll don&#8217;t have any index file in your directory. This will, of course, mean that if somebody type the directory name into their browser, a full listing of all the files in that directory are going to be shown, that may be a security risk for your website. To [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-2377","post","type-post","status-publish","format-standard","hentry","category-website-development"],"_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=2377"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2377\/revisions"}],"predecessor-version":[{"id":2378,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2377\/revisions\/2378"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=2377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=2377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=2377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}