{"id":1111,"date":"2012-05-04T20:59:11","date_gmt":"2012-05-04T20:59:11","guid":{"rendered":"http:\/\/www.phpmind.com\/blog\/?p=1111"},"modified":"2012-05-04T20:59:11","modified_gmt":"2012-05-04T20:59:11","slug":"how-to-restrict-directory-listing-using-htaccess","status":"publish","type":"post","link":"https:\/\/www.phpmind.com\/blog\/2012\/05\/how-to-restrict-directory-listing-using-htaccess\/","title":{"rendered":"How to restrict directory listing using .htaccess"},"content":{"rendered":"<p>Add these 2 lines in your .htaccess file. Create if already not exisit in your server and put in root level.<br \/>\nYou don&#8217;t have to restart Apache server.<\/p>\n<pre lang=\"php\"> \r\nIndexIgnore *\r\nOptions -Indexes\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Add these 2 lines in your .htaccess file. Create if already not exisit in your server and put in root level. You don&#8217;t have to restart Apache server. IndexIgnore * Options -Indexes<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[33,41],"tags":[],"class_list":["post-1111","post","type-post","status-publish","format-standard","hentry","category-htaccess","category-apache"],"_links":{"self":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/comments?post=1111"}],"version-history":[{"count":1,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1111\/revisions"}],"predecessor-version":[{"id":1112,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1111\/revisions\/1112"}],"wp:attachment":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/media?parent=1111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/categories?post=1111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/tags?post=1111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}