{"id":223,"date":"2013-01-23T09:49:45","date_gmt":"2013-01-23T09:49:45","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=223"},"modified":"2021-02-16T11:15:34","modified_gmt":"2021-02-16T11:15:34","slug":"turn-off-directory-browsing-on-whm-server","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/","title":{"rendered":"Disable Directory Browsing on WHM server"},"content":{"rendered":"<p><span style=\"color: #000000;\">One particular common mistake done by many of us is not disable directory browsing its always good to turn off the directory browsing for security reasons.while accessing website visitor always redirect to index page if the index page does not exist server shows the list of files and directories.<\/span><\/p>\n<p><span style=\"color: #000000;\">By default server allows the directory browsing to all your visitors however some times we do not want our users to access the files and folders exist into web servers.This is really simple to avoid your web content to being display overall.Directory browsing can easily be disable through .htaccess but i feel easiest to do it from WHM\/cpanel.<\/span><\/p>\n<h3><span style=\"color: #000000;\">Disable Directory Browing from WHM<\/span><\/h3>\n<p><span style=\"color: #000000;\">Here I explaining the steps to disable this via WHM panel, it\u2019s really simple.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 1 :<\/strong>\u00a0Log into WHM as root.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 2 :<\/strong>\u00a0Go to Apache Configuration.<\/span><\/p>\n<pre><strong>Home \u00bb Service Configuration \u00bb Apache Configuration<\/strong><\/pre>\n<h3><a href=\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/disable-directory-index-in-whm\/\" rel=\"attachment wp-att-5897\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone  wp-image-5897 pleslwp\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM.jpg\" alt=\"\" width=\"953\" height=\"259\" \/><\/a><\/h3>\n<p><span style=\"color: #000000;\"><strong>Step 3 :<\/strong>\u00a0Click on\u00a0<strong>Global Configuration<\/strong>.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 4 :<\/strong>\u00a0Move to Directory \u201c\/\u201d Options.<\/span><\/p>\n<h3><a href=\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/disable-directory-index-in-whm-1\/\" rel=\"attachment wp-att-5898\"><img decoding=\"async\" class=\"alignnone size-full wp-image-5898 pleslwp\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-1.jpg\" alt=\"\" width=\"948\" height=\"226\" srcset=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-1.jpg 948w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-1-300x72.jpg 300w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-1-768x183.jpg 768w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><\/a><\/h3>\n<p><span style=\"color: #000000;\"><strong>Step 5 :<\/strong>\u00a0Uncheck Indexes.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 6 : Save\u00a0<\/strong>then<strong>\u00a0Rebuild Configuration\u00a0<\/strong>and<strong>\u00a0Restart Apache.<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">That\u2019s it.<\/span><\/p>\n<h3><span style=\"color: #000000;\">Disable directory browsing in cPanel<\/span><\/h3>\n<ul>\n<li><span style=\"color: #000000;\">Login to your control panel<\/span><\/li>\n<li><span style=\"color: #000000;\">Click on <strong>Index Manager<\/strong><\/span><\/li>\n<li><span style=\"color: #000000;\">Select the website\/sub domain you want to disable director listing for<\/span><\/li>\n<li><span style=\"color: #000000;\">Select public_html from the list of folders<\/span><\/li>\n<li><span style=\"color: #000000;\">Next click on &#8216;no indexing&#8217; and click save<\/span><\/li>\n<li><span style=\"color: #000000;\">Now directory browsing should be disable<\/span><a href=\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/disbale-directory-browsing\/\" rel=\"attachment wp-att-225\"><img decoding=\"async\" class=\"alignnone size-full wp-image-225 pleslwp\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/disbale-directory-browsing.jpg\" alt=\"disbale directory browsing\" width=\"500\" height=\"169\" srcset=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/disbale-directory-browsing.jpg 500w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/disbale-directory-browsing-300x101.jpg 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">That&#8217;s all we have to do.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One particular common mistake done by many of us is not disable directory browsing its always good to turn off the directory browsing for security reasons.while accessing website visitor always redirect to index page if the index page does not exist server shows the list of files and directories. By default server allows the directory [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":5899,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-223","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Disable Directory Browsing on WHM server - cPanel Plesk<\/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:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Disable Directory Browsing on WHM server - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"One particular common mistake done by many of us is not disable directory browsing its always good to turn off the directory browsing for security reasons.while accessing website visitor always redirect to index page if the index page does not exist server shows the list of files and directories. By default server allows the directory [...]Continue Reading...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-2.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Seemab Saleem\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/\"},\"author\":{\"name\":\"Seemab Saleem\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\"},\"headline\":\"Disable Directory Browsing on WHM server\",\"datePublished\":\"2013-01-23T09:49:45+00:00\",\"dateModified\":\"2021-02-16T11:15:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/\"},\"wordCount\":227,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-2.jpg\",\"articleSection\":[\"Cpanel\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/\",\"name\":\"Disable Directory Browsing on WHM server - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-2.jpg\",\"datePublished\":\"2013-01-23T09:49:45+00:00\",\"dateModified\":\"2021-02-16T11:15:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-2.jpg\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-2.jpg\",\"width\":206,\"height\":245},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Disable Directory Browsing on WHM server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\",\"name\":\"Seemab Saleem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"caption\":\"Seemab Saleem\"},\"description\":\"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!\",\"sameAs\":[\"https:\/\/cpanelplesk.com\/wp62\"],\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Disable Directory Browsing on WHM server - cPanel Plesk","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:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/","twitter_card":"summary_large_image","twitter_title":"Disable Directory Browsing on WHM server - cPanel Plesk","twitter_description":"One particular common mistake done by many of us is not disable directory browsing its always good to turn off the directory browsing for security reasons.while accessing website visitor always redirect to index page if the index page does not exist server shows the list of files and directories. By default server allows the directory [...]Continue Reading...","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-2.jpg","twitter_misc":{"Written by":"Seemab Saleem","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/"},"author":{"name":"Seemab Saleem","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648"},"headline":"Disable Directory Browsing on WHM server","datePublished":"2013-01-23T09:49:45+00:00","dateModified":"2021-02-16T11:15:34+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/"},"wordCount":227,"commentCount":1,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-2.jpg","articleSection":["Cpanel"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/","url":"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/","name":"Disable Directory Browsing on WHM server - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-2.jpg","datePublished":"2013-01-23T09:49:45+00:00","dateModified":"2021-02-16T11:15:34+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-2.jpg","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/Disable-directory-index-in-WHM-2.jpg","width":206,"height":245},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/turn-off-directory-browsing-on-whm-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"Disable Directory Browsing on WHM server"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648","name":"Seemab Saleem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","caption":"Seemab Saleem"},"description":"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!","sameAs":["https:\/\/cpanelplesk.com\/wp62"],"url":"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=223"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/223\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/5899"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}