{"id":18442,"date":"2026-09-30T08:58:31","date_gmt":"2026-09-30T05:58:31","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/disable-directory-listing-cpanel\/"},"modified":"2026-09-30T08:58:31","modified_gmt":"2026-09-30T05:58:31","password":"","slug":"disable-directory-listing-cpanel","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/disable-directory-listing-cpanel\/","title":{"rendered":"How to Stop Your Website Files Being Listed in the Browser (cPanel Indexes)"},"content":{"rendered":"<div class=\"hy-tldr\" style=\"background:#f6f7fb;border-left:4px solid #d83954;border-radius:10px;padding:14px 18px;margin:0 0 20px;line-height:1.8\"><strong>In short:<\/strong> If a folder on your site has no index file, the browser may show a list of all its files to any visitor, which is a security risk. To stop this: go to cPanel, then Advanced, then Indexes, choose the folder (such as public_html), select No Indexing and click Save.<\/div>\n<p>When a folder has no index.html or index.php, the web server may display a list of its files. Anyone can then browse and download them.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2018\/12\/website-file-directory-example.jpg\" alt=\"Example of a directory listing\" \/><\/p>\n<p><strong>1.<\/strong> Log in to cPanel (see <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/how-to-log-in-to-cpanel\/\">how to log in to cPanel<\/a>).<\/p>\n<p><strong>2.<\/strong> In the <strong>Advanced<\/strong> section, click <strong>Indexes<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2018\/12\/disable-directory-cpanel-index-manager.png\" alt=\"Indexes\" \/><\/p>\n<p><strong>3.<\/strong> Choose the folder you want to change, for example public_html, your website&#8217;s main folder.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2018\/12\/disable-directory-cpanel-index-manager1.png\" alt=\"Choose the folder\" \/><\/p>\n<p><strong>4.<\/strong> Select <strong>No Indexing<\/strong> to turn off the file list.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2018\/12\/disable-directory-cpanel-index-manager2.png\" alt=\"No Indexing\" \/><\/p>\n<p><strong>5.<\/strong> Click <strong>Save<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2018\/12\/disable-directory-cpanel-index-manager3.png\" alt=\"Save\" \/><\/p>\n<p class=\"hy-svc-link\" style=\"background:#fff5f7;border-left:4px solid #d83954;border-radius:10px;padding:14px 18px;margin:20px 0;line-height:1.8\"><strong>Related service:<\/strong> <a href=\"https:\/\/www.hyyat.com\/en\/shared-hosting-2\/\">Hyyat Host shared hosting<\/a> includes cPanel and 24\/7 support.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In short: If a folder on your site has no index file, the browser may show a list of all its files to any visitor, which is a security risk. To stop this: go to cPanel, then Advanced, then Indexes, choose the folder (such as public_html), select No Indexing and click Save. When a folder [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2749],"doc_tag":[],"class_list":["post-18442","docs","type-docs","status-publish","hentry","doc_category-website-control-panel-cpanel"],"year_month":"2026-10","word_count":133,"total_views":"2","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"Website control panel ( cpanel )","term_url":"https:\/\/www.hyyat.com\/en\/kb\/website-control-panel-cpanel\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18442"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18442\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18442"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18442"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}