{"id":920,"date":"2019-10-22T09:02:33","date_gmt":"2019-10-22T07:02:33","guid":{"rendered":"https:\/\/pomoc.lh.pl\/?p=920"},"modified":"2022-01-04T15:04:36","modified_gmt":"2022-01-04T14:04:36","slug":"katalog-zabezpieczony-haslem","status":"publish","type":"docs","link":"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/","title":{"rendered":"Katalog zabezpieczony has\u0142em &#8211; htpasswd"},"content":{"rendered":"\n<p>Zabezpieczanie katalogu has\u0142em jest przydatne, gdy z serwera korzysta kilka os\u00f3b, a tylko wybrane powinny mie\u0107 dost\u0119p do okre\u015blonych zasob\u00f3w. To te\u017c jeden ze sposob\u00f3w na to, aby zablokowa\u0107 hasem dost\u0119p do strony na czas jej tworzenia.<\/p>\n\n\n\n<p>1. Aby zabezpieczy\u0107 katalog has\u0142em nale\u017cy zalogowa\u0107 si\u0119 do swojego serwera FTP, a na swoim dysku lokalnym stworzy\u0107 plik .htaccess. <\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-background\" style=\"background-color:#f3f4f5\"><tbody><tr><td><strong>Dowiedz si\u0119 wi\u0119cej &#8211; <\/strong><a rel=\"noreferrer noopener\" aria-label=\"jak zalogowa\u0107 si\u0119 do konta FTP (otwiera si\u0119 na nowej zak\u0142adce)\" href=\"https:\/\/www.lh.pl\/pomoc\/doc\/konfiguracja-filezilla-polaczenie-z-serwerem-ftp\/\" target=\"_blank\"><strong>jak zalogowa\u0107 si\u0119 do konta FTP<\/strong><\/a><strong>. <\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>2. W stworzonym lokalnie pliku  .htaccess nale\u017cy wprowadzi\u0107 nast\u0119puj\u0105c\u0105 tre\u015b\u0107:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">AuthName \"Dostep ograniczony haslem\"\nAuthType Basic\nAuthUserFile \/home\/platne\/<strong>serwer12345<\/strong>\/public_html\/<strong>katalognaserwerze<\/strong>\/.htpasswd\nRequire valid-user <\/pre>\n\n\n\n<p>W miejscu: <strong>serwer12345<\/strong> nale\u017cy poda\u0107 nazw\u0119 swojego serwera, a w miejscu: <strong>katalognaserwerze<\/strong> wprowadzi\u0107 nazw\u0119 katalogu. <\/p>\n\n\n\n<p>3. Po dodaniu wpis\u00f3w w pliku  .htaccess nale\u017cy go zapisa\u0107 lokalnie, a nast\u0119pnie umie\u015bci\u0107 na serwerze, wewn\u0105trz katalogu, kt\u00f3ry chcesz zabezpieczy\u0107. <\/p>\n\n\n\n<p>4. Kolejny krok to wygenerowanie zaszyfrowanego has\u0142a. Mo\u017cesz w tym celu skorzysta\u0107 z dost\u0119pnych generator\u00f3w, np.  <a href=\"https:\/\/hostingcanada.org\/htpasswd-generator\/\">www.htaccesstools.com\/htpasswd-generator<\/a>. <\/p>\n\n\n\n<p>5. Nast\u0119pnie na swoim dysku lokalnym stw\u00f3rz plik  <strong>.htpasswd<\/strong> i wklej do niego tre\u015b\u0107 uzyskan\u0105 z generatora.<\/p>\n\n\n\n<p>6. Zapisz plik, a nast\u0119pnie umie\u015b\u0107 go na serwerze wewn\u0105trz katalogu, kt\u00f3ry chcesz zabezpieczy\u0107 has\u0142em.  <\/p>\n\n\n\n<p>7. Po wykonaniu powy\u017cszych krok\u00f3w, ka\u017cda osoba, kt\u00f3ra b\u0119dzie chcia\u0142a wej\u015b\u0107 do katalogu zabezpieczonego has\u0142em, zostanie poproszona o podanie loginu i has\u0142a dost\u0119pu. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zabezpieczanie katalogu has\u0142em jest przydatne, gdy z serwera korzysta kilka os\u00f3b, a tylko wybrane powinny mie\u0107 dost\u0119p do okre\u015blonych zasob\u00f3w. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":10702,"template":"","tags":[],"kategoria":[11,4],"blocksy_meta":{"page_structure_type":"default","page_enable_vertical_spacing":"yes","has_hero_section":"default","hero_section":"type-1","hero_alignment1":"left","hero_alignment2":"center","hero_height":"230px","page_title_bg_type":"color","db3364d9d44c747999eb1edee26fa377":"","custom_hero_background":{"attachment_id":null},"parallax":{"desktop":false,"tablet":false,"mobile":false},"f5e7b906d3bd6b167f9eca54d349c94c":"","single_meta_elements":{"author":true,"date":true,"categories":true,"comments":true,"updated":false,"tags":false},"has_meta_label":"yes","date_format_source":"custom","single_meta_date_format":"M j, Y","fe3dfe5a6ddb9b520c4e38a06c940414":"","page_excerpt_visibility":{"desktop":true,"tablet":true,"mobile":false},"pageTitleFont":{"family":"Default","variation":"n7","size":{"desktop":"32px","tablet":"30px","mobile":"25px"},"line-height":"1.3","letter-spacing":"0em","text-transform":"none","text-decoration":"none"},"pageTitleFontColor":{"default":{"color":"var(--theme-palette-color-4)"}},"pageMetaFont":{"family":"Default","variation":"n6","size":{"desktop":"12px","tablet":"12px","mobile":"12px"},"line-height":"1.3","letter-spacing":"0em","text-transform":"uppercase","text-decoration":"none"},"pageMetaFontColor":{"default":{"color":"CT_CSS_SKIP_RULEDEFAULT"},"hover":{"color":"CT_CSS_SKIP_RULEDEFAULT"}},"pageExcerptFont":{"family":"Default","variation":"n5","size":"17px","line-height":"1.65","letter-spacing":"0em","text-transform":"none","text-decoration":"none"},"pageExcerptColor":{"default":{"color":"CT_CSS_SKIP_RULEDEFAULT"}},"pageTitleOverlay":{"default":{"color":"rgba(41, 51, 60, 0.2)"}},"pageTitleBackground":{"default":{"color":"#EDEFF2"}},"a19b55d9104722002f02bc0837b5b95e":"","584f31b3672eb33f24dfb319a2fbea5f":"","e204ccdb36181033b283a023729c54d3":"","styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"acf":[],"featured_image_urls":{"full":["https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder.png",1280,720,false],"thumbnail":["https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder-150x150.png",150,150,true],"medium":["https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder-300x169.png",300,169,true],"medium_large":["https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder-768x432.png",768,432,true],"large":["https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder-1024x576.png",1024,576,true],"1536x1536":["https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder.png",1280,720,false],"2048x2048":["https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder.png",1280,720,false],"yarpp-thumbnail":["https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder.png",120,68,false]},"post_excerpt_stackable":"<p>Zabezpieczanie katalogu has\u0142em jest przydatne, gdy z serwera korzysta kilka os\u00f3b, a tylko wybrane powinny mie\u0107 dost\u0119p do okre\u015blonych zasob\u00f3w. To te\u017c jeden ze sposob\u00f3w na to, aby zablokowa\u0107 hasem dost\u0119p do strony na czas jej tworzenia. 1. Aby zabezpieczy\u0107 katalog has\u0142em nale\u017cy zalogowa\u0107 si\u0119 do swojego serwera FTP, a na swoim dysku lokalnym stworzy\u0107 plik .htaccess. Dowiedz si\u0119 wi\u0119cej &#8211; jak zalogowa\u0107 si\u0119 do konta FTP. 2. W stworzonym lokalnie pliku .htaccess nale\u017cy wprowadzi\u0107 nast\u0119puj\u0105c\u0105 tre\u015b\u0107: AuthName &#8222;Dostep ograniczony haslem&#8221; AuthType Basic AuthUserFile \/home\/platne\/serwer12345\/public_html\/katalognaserwerze\/.htpasswd Require valid-user W miejscu: serwer12345 nale\u017cy poda\u0107 nazw\u0119 swojego serwera, a w miejscu: katalognaserwerze wprowadzi\u0107&hellip;<\/p>\n","category_list":"","author_info":{"name":"dzialpomocy","url":"https:\/\/www.lh.pl\/pomoc\/author\/dzialpomocy\/"},"comments_num":"0 comments","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Katalog zabezpieczony has\u0142em - htpasswd - LH.pl<\/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:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Katalog zabezpieczony has\u0142em - htpasswd - LH.pl\" \/>\n<meta property=\"og:description\" content=\"Zabezpieczanie katalogu has\u0142em jest przydatne, gdy z serwera korzysta kilka os\u00f3b, a tylko wybrane powinny mie\u0107 dost\u0119p do okre\u015blonych zasob\u00f3w. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/\" \/>\n<meta property=\"og:site_name\" content=\"LH.pl\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wwwlhpl\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-04T14:04:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Szacowany czas czytania\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuta\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/\",\"url\":\"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/\",\"name\":\"Katalog zabezpieczony has\u0142em - htpasswd - LH.pl\",\"isPartOf\":{\"@id\":\"https:\/\/www.lh.pl\/pomoc\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder.png\",\"datePublished\":\"2019-10-22T07:02:33+00:00\",\"dateModified\":\"2022-01-04T14:04:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/#breadcrumb\"},\"inLanguage\":\"pl-PL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/#primaryimage\",\"url\":\"https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder.png\",\"contentUrl\":\"https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder.png\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Lh.pl Pomoc\",\"item\":\"https:\/\/www.lh.pl\/pomoc\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dzia\u0142 pomocy\",\"item\":\"https:\/\/www.lh.pl\/pomoc\/docs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Katalog zabezpieczony has\u0142em &#8211; htpasswd\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.lh.pl\/pomoc\/#website\",\"url\":\"https:\/\/www.lh.pl\/pomoc\/\",\"name\":\"LH.pl\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.lh.pl\/pomoc\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.lh.pl\/pomoc\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pl-PL\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.lh.pl\/pomoc\/#organization\",\"name\":\"LH.pl\",\"url\":\"https:\/\/www.lh.pl\/pomoc\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\/\/www.lh.pl\/pomoc\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2019\/09\/LH-logo-color-RGB.png\",\"contentUrl\":\"https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2019\/09\/LH-logo-color-RGB.png\",\"width\":771,\"height\":289,\"caption\":\"LH.pl\"},\"image\":{\"@id\":\"https:\/\/www.lh.pl\/pomoc\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/wwwlhpl\",\"https:\/\/www.instagram.com\/wwwlhpl\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Katalog zabezpieczony has\u0142em - htpasswd - LH.pl","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:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/","og_locale":"pl_PL","og_type":"article","og_title":"Katalog zabezpieczony has\u0142em - htpasswd - LH.pl","og_description":"Zabezpieczanie katalogu has\u0142em jest przydatne, gdy z serwera korzysta kilka os\u00f3b, a tylko wybrane powinny mie\u0107 dost\u0119p do okre\u015blonych zasob\u00f3w. [&hellip;]","og_url":"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/","og_site_name":"LH.pl","article_publisher":"https:\/\/www.facebook.com\/wwwlhpl","article_modified_time":"2022-01-04T14:04:36+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Szacowany czas czytania":"1 minuta"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/","url":"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/","name":"Katalog zabezpieczony has\u0142em - htpasswd - LH.pl","isPartOf":{"@id":"https:\/\/www.lh.pl\/pomoc\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/#primaryimage"},"image":{"@id":"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder.png","datePublished":"2019-10-22T07:02:33+00:00","dateModified":"2022-01-04T14:04:36+00:00","breadcrumb":{"@id":"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/#breadcrumb"},"inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/"]}]},{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/#primaryimage","url":"https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder.png","contentUrl":"https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2021\/11\/placeholder.png","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/www.lh.pl\/pomoc\/doc\/katalog-zabezpieczony-haslem\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Lh.pl Pomoc","item":"https:\/\/www.lh.pl\/pomoc\/"},{"@type":"ListItem","position":2,"name":"Dzia\u0142 pomocy","item":"https:\/\/www.lh.pl\/pomoc\/docs\/"},{"@type":"ListItem","position":3,"name":"Katalog zabezpieczony has\u0142em &#8211; htpasswd"}]},{"@type":"WebSite","@id":"https:\/\/www.lh.pl\/pomoc\/#website","url":"https:\/\/www.lh.pl\/pomoc\/","name":"LH.pl","description":"","publisher":{"@id":"https:\/\/www.lh.pl\/pomoc\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lh.pl\/pomoc\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pl-PL"},{"@type":"Organization","@id":"https:\/\/www.lh.pl\/pomoc\/#organization","name":"LH.pl","url":"https:\/\/www.lh.pl\/pomoc\/","logo":{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/www.lh.pl\/pomoc\/#\/schema\/logo\/image\/","url":"https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2019\/09\/LH-logo-color-RGB.png","contentUrl":"https:\/\/www.lh.pl\/pomoc\/wp-content\/uploads\/2019\/09\/LH-logo-color-RGB.png","width":771,"height":289,"caption":"LH.pl"},"image":{"@id":"https:\/\/www.lh.pl\/pomoc\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/wwwlhpl","https:\/\/www.instagram.com\/wwwlhpl\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.lh.pl\/pomoc\/wp-json\/wp\/v2\/docs\/920"}],"collection":[{"href":"https:\/\/www.lh.pl\/pomoc\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.lh.pl\/pomoc\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.lh.pl\/pomoc\/wp-json\/wp\/v2\/users\/1"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lh.pl\/pomoc\/wp-json\/wp\/v2\/media\/10702"}],"wp:attachment":[{"href":"https:\/\/www.lh.pl\/pomoc\/wp-json\/wp\/v2\/media?parent=920"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lh.pl\/pomoc\/wp-json\/wp\/v2\/tags?post=920"},{"taxonomy":"kategoria","embeddable":true,"href":"https:\/\/www.lh.pl\/pomoc\/wp-json\/wp\/v2\/kategoria?post=920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}