{"id":1918,"date":"2015-04-10T16:48:41","date_gmt":"2015-04-10T13:48:41","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=1918"},"modified":"2015-04-10T16:52:29","modified_gmt":"2015-04-10T13:52:29","slug":"onion-service-authorization-cookie","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2015\/04\/10\/onion-service-authorization-cookie\/","title":{"rendered":"Onion Service Authorization Cookie"},"content":{"rendered":"<p>Tor Hidden\/Onion Services include a small gem that is not so well known, there&#8217;s a way to authorize only specific clients to use an Onion Service through a cookie. It sounds a bit like .htaccess for Hidden\/Onion Services.<br \/>\nI got asked today about how I use this authorization mechanism, so here it is:<\/p>\n<p>In server&#8217;s torrc:<br \/>\n<pre><code2 class=\"preserve-code-formatting\">HiddenServiceDir \/var\/lib\/tor\/myssh\nHiddenServiceAuthorizeClient basic myclient\nHiddenServicePort 3221 12223\n<\/code2><\/pre><\/p>\n<p>For those who want even more &#8220;anonymity&#8221;, there&#8217;s even a &#8216;stealth&#8217; mode&#8230;just replace <em>basic<\/em> with <em>stealth<\/em>. Read Tor&#8217;s man page for more info on stealth mode.<\/p>\n<p>Then in \/var\/lib\/tor\/myssh\/hostname one will see something like:<br \/>\n<pre><code2 class=\"preserve-code-formatting\"># cat \/var\/lib\/tor\/myssh\/hostname&nbsp;&nbsp;\nkeesh0ahGh6lahbe.onion auliech8bu7aighaiv4aiW # client: myclient<\/code2><\/pre><\/p>\n<p>Now on the client side just add to the client&#8217;s torrc this:<br \/>\n<code>HidServAuth keesh0ahGh6lahbe.onion auliech8bu7aighaiv4aiW<\/code><\/p>\n<p>That&#8217;s it&#8230;it&#8217;s extremely simple to use and can potentially protect Onion Services that are only to be used by closed groups. Anyone who doesn&#8217;t have the cookie won&#8217;t be able to connect to the onion service.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tor Hidden\/Onion Services include a small gem that is not so well known, there&#8217;s a way to authorize only specific clients to use an Onion Service through a cookie. It sounds a bit like .htaccess for Hidden\/Onion Services. I got asked today about how I use this authorization mechanism, so here it is: In server&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1918","post","type-post","status-publish","format-standard","hentry","category-general"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"Tor Hidden\/Onion Services include a small gem that is not so well known, there&#039;s a way to authorize only specific clients to use an Onion Service through a cookie. It sounds a bit like .htaccess for Hidden\/Onion Services. I got asked today about how I use this authorization mechanism, so here it is: In server&#039;s\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"kargig\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.void.gr\/kargig\/blog\/2015\/04\/10\/onion-service-authorization-cookie\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2015\\\/04\\\/10\\\/onion-service-authorization-cookie\\\/#article\",\"name\":\"Onion Service Authorization Cookie | Into.the.Void.\",\"headline\":\"Onion Service Authorization Cookie\",\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"},\"datePublished\":\"2015-04-10T16:48:41+03:00\",\"dateModified\":\"2015-04-10T16:52:29+03:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2015\\\/04\\\/10\\\/onion-service-authorization-cookie\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2015\\\/04\\\/10\\\/onion-service-authorization-cookie\\\/#webpage\"},\"articleSection\":\"General\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2015\\\/04\\\/10\\\/onion-service-authorization-cookie\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/general\\\/#listItem\",\"position\":2,\"name\":\"General\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/general\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2015\\\/04\\\/10\\\/onion-service-authorization-cookie\\\/#listItem\",\"name\":\"Onion Service Authorization Cookie\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2015\\\/04\\\/10\\\/onion-service-authorization-cookie\\\/#listItem\",\"position\":3,\"name\":\"Onion Service Authorization Cookie\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/general\\\/#listItem\",\"name\":\"General\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/kargig\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/\",\"name\":\"kargig\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2015\\\/04\\\/10\\\/onion-service-authorization-cookie\\\/#webpage\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2015\\\/04\\\/10\\\/onion-service-authorization-cookie\\\/\",\"name\":\"Onion Service Authorization Cookie | Into.the.Void.\",\"description\":\"Tor Hidden\\\/Onion Services include a small gem that is not so well known, there's a way to authorize only specific clients to use an Onion Service through a cookie. It sounds a bit like .htaccess for Hidden\\\/Onion Services. I got asked today about how I use this authorization mechanism, so here it is: In server's\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2015\\\/04\\\/10\\\/onion-service-authorization-cookie\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"datePublished\":\"2015-04-10T16:48:41+03:00\",\"dateModified\":\"2015-04-10T16:52:29+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Onion Service Authorization Cookie | Into.the.Void.","description":"Tor Hidden\/Onion Services include a small gem that is not so well known, there's a way to authorize only specific clients to use an Onion Service through a cookie. It sounds a bit like .htaccess for Hidden\/Onion Services. I got asked today about how I use this authorization mechanism, so here it is: In server's","canonical_url":"https:\/\/www.void.gr\/kargig\/blog\/2015\/04\/10\/onion-service-authorization-cookie\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.void.gr\/kargig\/blog\/2015\/04\/10\/onion-service-authorization-cookie\/#article","name":"Onion Service Authorization Cookie | Into.the.Void.","headline":"Onion Service Authorization Cookie","author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"},"datePublished":"2015-04-10T16:48:41+03:00","dateModified":"2015-04-10T16:52:29+03:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2015\/04\/10\/onion-service-authorization-cookie\/#webpage"},"isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2015\/04\/10\/onion-service-authorization-cookie\/#webpage"},"articleSection":"General"},{"@type":"BreadcrumbList","@id":"https:\/\/www.void.gr\/kargig\/blog\/2015\/04\/10\/onion-service-authorization-cookie\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/www.void.gr\/kargig\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/general\/#listItem","position":2,"name":"General","item":"https:\/\/www.void.gr\/kargig\/blog\/category\/general\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2015\/04\/10\/onion-service-authorization-cookie\/#listItem","name":"Onion Service Authorization Cookie"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2015\/04\/10\/onion-service-authorization-cookie\/#listItem","position":3,"name":"Onion Service Authorization Cookie","previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/general\/#listItem","name":"General"}}]},{"@type":"Organization","@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization","name":"Into.the.Void.","description":"Into The Void","url":"https:\/\/www.void.gr\/kargig\/blog\/","sameAs":["https:\/\/x.com\/kargig"]},{"@type":"Person","@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author","url":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/","name":"kargig"},{"@type":"WebPage","@id":"https:\/\/www.void.gr\/kargig\/blog\/2015\/04\/10\/onion-service-authorization-cookie\/#webpage","url":"https:\/\/www.void.gr\/kargig\/blog\/2015\/04\/10\/onion-service-authorization-cookie\/","name":"Onion Service Authorization Cookie | Into.the.Void.","description":"Tor Hidden\/Onion Services include a small gem that is not so well known, there's a way to authorize only specific clients to use an Onion Service through a cookie. It sounds a bit like .htaccess for Hidden\/Onion Services. I got asked today about how I use this authorization mechanism, so here it is: In server's","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2015\/04\/10\/onion-service-authorization-cookie\/#breadcrumblist"},"author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"creator":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"datePublished":"2015-04-10T16:48:41+03:00","dateModified":"2015-04-10T16:52:29+03:00"},{"@type":"WebSite","@id":"https:\/\/www.void.gr\/kargig\/blog\/#website","url":"https:\/\/www.void.gr\/kargig\/blog\/","name":"Into.the.Void.","description":"Into The Void","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"1918","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2022-01-04 11:54:35","updated":"2026-10-21 09:57:55","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/category\/general\/\" title=\"General\">General<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tOnion Service Authorization Cookie\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.void.gr\/kargig\/blog\/"},{"label":"General","link":"https:\/\/www.void.gr\/kargig\/blog\/category\/general\/"},{"label":"Onion Service Authorization Cookie","link":"https:\/\/www.void.gr\/kargig\/blog\/2015\/04\/10\/onion-service-authorization-cookie\/"}],"views":28948,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=1918"}],"version-history":[{"count":5,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1918\/revisions"}],"predecessor-version":[{"id":1923,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1918\/revisions\/1923"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=1918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=1918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=1918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}