{"id":3429,"date":"2020-07-24T17:38:04","date_gmt":"2020-07-24T14:38:04","guid":{"rendered":"http:\/\/faq.easylinehost.fi\/webhotellit\/hakemistojen-suojaaminen-salasanalla\/"},"modified":"2025-01-22T13:57:04","modified_gmt":"2025-01-22T11:57:04","slug":"how-to-protect-directories-with-a-password","status":"publish","type":"page","link":"https:\/\/faq.easylinehost.com\/en\/webhotels\/how-to-protect-directories-with-a-password\/","title":{"rendered":"How to protect directories with a password"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row full_width=&#8221;stretch_row&#8221; parallax=&#8221;content-moving&#8221; parallax_image=&#8221;306&#8243; el_class=&#8221;violettibg&#8221; css=&#8221;.vc_custom_1595587207568{margin-top: 60px !important;padding-top: 70px !important;padding-bottom: 50px !important;}&#8221;][vc_column][vc_single_image image=&#8221;123&#8243; img_size=&#8221;small-l&#8221; alignment=&#8221;center&#8221; css=&#8221;.vc_custom_1595600907572{margin-bottom: 20px !important;padding-bottom: 0px !important;}&#8221;][vc_custom_heading text=&#8221;Webhotels&#8221; font_container=&#8221;tag:h1|text_align:center|color:%23ffffff&#8221; google_fonts=&#8221;font_family:Open%20Sans%3A300%2C300italic%2Cregular%2Citalic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic|font_style:300%20light%20regular%3A300%3Anormal&#8221; el_class=&#8221;allcaps&#8221;][vc_separator color=&#8221;white&#8221; border_width=&#8221;5&#8243; el_width=&#8221;10&#8243;][vc_custom_heading text=&#8221;How to protect directories with a password&#8221; font_container=&#8221;tag:h3|text_align:center|color:%23ffffff&#8221; google_fonts=&#8221;font_family:Open%20Sans%3A300%2C300italic%2Cregular%2Citalic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic|font_style:600%20bold%20regular%3A600%3Anormal&#8221; el_class=&#8221;allcaps&#8221;][\/vc_column][\/vc_row][vc_row gap=&#8221;20&#8243; css=&#8221;.vc_custom_1596807877951{margin-bottom: 120px !important;padding-top: 30px !important;background-position: center !important;background-repeat: no-repeat !important;background-size: cover !important;}&#8221;][vc_column width=&#8221;3\/4&#8243;][vc_column_text css=&#8221;&#8221;]<\/p>\n<h2><span style=\"color: #af1280;\">How to protect directories with a password<\/span><\/h2>\n<ul>\n<li>Log in to the Control Panel (<a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/logging-in-to-control-panel\/\" target=\"_blank\" rel=\"noopener noreferrer\">Click here for instructions on how to log in<\/a>).<\/li>\n<\/ul>\n<h2><span style=\"color: #af1280;\">Protecting a specific directory with a password<\/span><\/h2>\n<ul>\n<li>If you have subscribed multiple domains with same administrator account, choose the domain in which you want to create the password protected directory in, from <strong>&#8216;Subscription&#8217;<\/strong> -dropdown list.<\/li>\n<li>After the domain is selected, click: <strong>&#8216;Websites &amp; Domains&#8217; \u2192\u00a0 &#8216;Password-protected Directories&#8217;\u2192 &#8216;Add Protected Directory&#8217;.&#8217;<\/strong><\/li>\n<\/ul>\n<p>[\/vc_column_text][vc_single_image image=&#8221;6060&#8243; img_size=&#8221;full&#8221; add_caption=&#8221;yes&#8221; css=&#8221;&#8221;][vc_column_text css=&#8221;&#8221;]<\/p>\n<ul>\n<li>For the name of the directory, give either a name of a directory in <strong>&#8216;httpdocs&#8217;<\/strong> (for example, &#8216;top_secret&#8217;) or name it something new; if such a folder doesn&#8217;t exist, the control panel will create it.<\/li>\n<li>If you leave the default setting, slash (\/), for the name, the control panel will protect the whole default directory, <strong>&#8216;httpdocs&#8217;<\/strong>; in this case, users can&#8217;t see even your front page without a username and password.<\/li>\n<li>This comes in handy when designing and creating your pages or when you only want to give certain people access to your site in advance.<\/li>\n<li>Give a <strong>&#8216;Title of the protected area&#8217;<\/strong> to be used in the password prompt. It can be something that describes the contents of a directory, for example, <strong>&#8216;Protected Files&#8217;<\/strong>. After this, click <strong>&#8216;Create&#8217;<\/strong>-button.<\/li>\n<\/ul>\n<h2><span style=\"color: #af1280;\">Adding users to password-protected directory<\/span><\/h2>\n<ul>\n<li>After creating a new password-protected directory, you can create as many users as you want by clicking the <strong>&#8216;Add User&#8217; <\/strong>-button.<\/li>\n<\/ul>\n<p>[\/vc_column_text][vc_single_image image=&#8221;6062&#8243; img_size=&#8221;full&#8221; add_caption=&#8221;yes&#8221; css=&#8221;&#8221;][vc_column_text css=&#8221;&#8221;]<\/p>\n<ul>\n<li>If you don&#8217;t create users, no one has access to this directory.<\/li>\n<li>If the directory has multiple users, all of them must have their own personal accounts for security reasons.<\/li>\n<li>If necessary, you can change a user&#8217;s password by clicking the key symbol on the right side of the screen and typing the password.<\/li>\n<\/ul>\n<p>[\/vc_column_text][vc_single_image image=&#8221;6066&#8243; img_size=&#8221;full&#8221; add_caption=&#8221;yes&#8221; css=&#8221;&#8221;][vc_column_text css=&#8221;&#8221;]<\/p>\n<h2>Removing users<\/h2>\n<ul>\n<li>You can remove a user you want by clicking <strong>&#8216;Websites &amp; Domains&#8217; -&gt; &#8216;Password-protected Directories&#8217;.&#8217;<\/strong><\/li>\n<li>Click the checkbox next to the username, then click <strong>&#8216;Remove&#8217;<\/strong> and confirm the removal by clicking <strong>&#8216;Yes, remove&#8217;<\/strong>.<\/li>\n<\/ul>\n<p>[\/vc_column_text][vc_single_image image=&#8221;6068&#8243; img_size=&#8221;full&#8221; add_caption=&#8221;yes&#8221; css=&#8221;&#8221;][vc_column_text css=&#8221;&#8221;]<\/p>\n<h2><span style=\"color: #af1280;\">Removing password protection from directory<\/span><\/h2>\n<ul>\n<li>You can remove protection by clicking: <strong>&#8216;Websites &amp; Domains&#8217; -&gt; &#8216;Password-protected Directories&#8217;.<\/strong><\/li>\n<li>Click a tick in front of the directory and click <strong>&#8216;Remove Protection&#8217;\u00a0<\/strong>, then confirm by clicking <strong>&#8216;Yes, remove&#8217;<\/strong>.<\/li>\n<\/ul>\n<p>[\/vc_column_text][vc_single_image image=&#8221;6070&#8243; img_size=&#8221;full&#8221; add_caption=&#8221;yes&#8221; css=&#8221;&#8221;][vc_column_text css=&#8221;&#8221;]<\/p>\n<ul>\n<li>The control panel won&#8217;t remove the directory itself nor the contents, but only the protection.<\/li>\n<li>If you also want to remove the directory and\/or its contents, you can do this either with an FTP connection or in the control panel file manager <strong>&#8216;Files&#8217;<\/strong> and by clicking into the <strong>&#8216;httpdocs&#8217;<\/strong> directory and selecting the directory to remove and clicking <strong>&#8216;Remove.&#8217; <\/strong>Confirm by clicking <strong>&#8216;Yes, remove&#8217;<\/strong>.<\/li>\n<\/ul>\n<p>[\/vc_column_text][\/vc_column][vc_column width=&#8221;1\/4&#8243; css=&#8221;.vc_custom_1595546376925{background-color: #f7f7f7 !important;}&#8221;][vc_column_text css=&#8221;.vc_custom_1598284489553{margin-bottom: 25px !important;padding-bottom: 0px !important;}&#8221; el_class=&#8221;allcaps-bold2&#8243;]<span style=\"font-size: 9pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/\">Easylinehost FAQ<\/a> &gt;<a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/\"> Webhotels<\/a><\/span>[\/vc_column_text][vc_column_text]<\/p>\n<h3><span style=\"color: #af1280;\">Basic functions in Webhotel control panel<\/span><\/h3>\n<ul class=\"arrow\">\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/logging-in-to-control-panel\/\">How to log in to control panel<\/a><\/span><\/li>\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/how-to-choose-a-domain-to-configure-and-control-panel-frontpage\/\">How to choose a domain to configure and control panel frontpage<\/a><\/span><\/li>\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/users\/\">Users (Control panel)<\/a><\/span><\/li>\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/websites-domains\/\">Websites Domains (Control panel)<\/a><\/span><\/li>\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/mail\/\">Mail (Control panel)<\/a><\/span><\/li>\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/applications\/\">Applications (Control panel)<\/a><\/span><\/li>\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/statistics\/\">Statistics (Control panel)<\/a><\/span><\/li>\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/account\/\">Account (Control panel)<\/a><\/span><\/li>\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/changing-passwords\/\">How to change passwords (Webmail) (Control panel)<\/a><\/span><\/li>\n<li><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/logging-out-from-control-panel\/\"><span style=\"font-size: 10pt;\">How to log out of control panel<\/span><\/a><\/li>\n<\/ul>\n<h3><span style=\"color: #af1280;\"><br \/>\nOther functions in Webhotel control panel<\/span><\/h3>\n<ul class=\"arrow\">\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/how-to-transfer-your-web-pages-to-the-server\/\">How to transfer your web pages to the server<\/a><\/span><\/li>\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/web-statistics\/\">Web statistics of your website<\/a><\/span><\/li>\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/how-to-create-and-remove-database\/\">How to create and delete databases<\/a><\/span><\/li>\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/how-to-protect-directories-with-a-password\/\">How to protect directories with a password<\/a><\/span><\/li>\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/how-to-configure-dns-settings\/\">How to configure DNS-settings<\/a><\/span><\/li>\n<li><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/how-to-change-ftp-account-username-and-password\/\"><span style=\"font-size: 10pt;\">How to change FTP-account username and password<\/span><\/a><\/li>\n<\/ul>\n<h3><span style=\"color: #af1280;\"><br \/>\nOther<\/span><\/h3>\n<ul class=\"arrow\">\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/programming-languages\/\">Programming languages<\/a><\/span><\/li>\n<li><a href=\"https:\/\/faq.easylinehost.fi\/en\/webhotels\/how-to-modify-your-billing-contact-information\/\"><span style=\"font-size: 10pt;\">How to modify your billing contact information<\/span><\/a><\/li>\n<\/ul>\n<p>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row&#8221; parallax=&#8221;content-moving&#8221; parallax_image=&#8221;306&#8243; el_class=&#8221;violettibg&#8221; css=&#8221;.vc_custom_1595587207568{margin-top: 60px !important;padding-top: 70px !important;padding-bottom: 50px !important;}&#8221;][vc_column][vc_single_image image=&#8221;123&#8243; img_size=&#8221;small-l&#8221; alignment=&#8221;center&#8221; css=&#8221;.vc_custom_1595600907572{margin-bottom: 20px !important;padding-bottom: 0px !important;}&#8221;][vc_custom_heading text=&#8221;Webhotels&#8221; font_container=&#8221;tag:h1|text_align:center|color:%23ffffff&#8221; google_fonts=&#8221;font_family:Open%20Sans%3A300%2C300italic%2Cregular%2Citalic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic|font_style:300%20light%20regular%3A300%3Anormal&#8221; el_class=&#8221;allcaps&#8221;][vc_separator color=&#8221;white&#8221; border_width=&#8221;5&#8243; el_width=&#8221;10&#8243;][vc_custom_heading text=&#8221;How to protect directories with a password&#8221; font_container=&#8221;tag:h3|text_align:center|color:%23ffffff&#8221; google_fonts=&#8221;font_family:Open%20Sans%3A300%2C300italic%2Cregular%2Citalic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic|font_style:600%20bold%20regular%3A600%3Anormal&#8221; el_class=&#8221;allcaps&#8221;][\/vc_column][\/vc_row][vc_row gap=&#8221;20&#8243; css=&#8221;.vc_custom_1596807877951{margin-bottom: 120px !important;padding-top: 30px !important;background-position: center !important;background-repeat: no-repeat !important;background-size: cover !important;}&#8221;][vc_column width=&#8221;3\/4&#8243;][vc_column_text css=&#8221;&#8221;] How to protect directories [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3294,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"full-width-content","footnotes":""},"class_list":["post-3429","page","type-page","status-publish","entry","has-post-thumbnail"],"_links":{"self":[{"href":"https:\/\/faq.easylinehost.com\/en\/wp-json\/wp\/v2\/pages\/3429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/faq.easylinehost.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/faq.easylinehost.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/faq.easylinehost.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/faq.easylinehost.com\/en\/wp-json\/wp\/v2\/comments?post=3429"}],"version-history":[{"count":6,"href":"https:\/\/faq.easylinehost.com\/en\/wp-json\/wp\/v2\/pages\/3429\/revisions"}],"predecessor-version":[{"id":6073,"href":"https:\/\/faq.easylinehost.com\/en\/wp-json\/wp\/v2\/pages\/3429\/revisions\/6073"}],"up":[{"embeddable":true,"href":"https:\/\/faq.easylinehost.com\/en\/wp-json\/wp\/v2\/pages\/3294"}],"wp:attachment":[{"href":"https:\/\/faq.easylinehost.com\/en\/wp-json\/wp\/v2\/media?parent=3429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}