{"id":2462,"date":"2022-09-15T23:53:26","date_gmt":"2022-09-15T23:53:26","guid":{"rendered":"https:\/\/unlock-protocol.com\/guides\/?p=2462"},"modified":"2024-04-06T22:59:53","modified_gmt":"2024-04-06T22:59:53","slug":"password-protected-nft-memberships","status":"publish","type":"post","link":"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/","title":{"rendered":"Password Protected NFT Memberships"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2462\" class=\"elementor elementor-2462\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d859cee elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d859cee\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-390d114\" data-id=\"390d114\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-365d95a elementor-widget elementor-widget-text-editor\" data-id=\"365d95a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 05-08-2024 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<p>This guide shows you how you can use the powerful hook mechanism to password-protect your lock so that only users who know the password can purchase memberships from your contract.<\/p><p>Passwords can be used for memberships that are purchasable onchain.<\/p><p>Each membership or subscription can have multiple passwords associated with it, and you can set the number of times a particular password can be used before it is no longer valid.\u00a0<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ef03eac elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ef03eac\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-95ca5b2\" data-id=\"95ca5b2\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f578231 elementor-widget elementor-widget-text-editor\" data-id=\"f578231\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><span style=\"background-color: var( --e-global-color-3f41d9b ); font-size: 1rem;\">For this example, the password is <\/span><span class=\"Code-BG\" style=\"font-size: 1rem;\">c0wabung4!<\/span><span style=\"background-color: var( --e-global-color-3f41d9b ); font-size: 1rem;\">.<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e3a472b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e3a472b\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9676d3d\" data-id=\"9676d3d\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7c6bb58 elementor-widget elementor-widget-heading\" data-id=\"7c6bb58\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 05-08-2024 *\/\n.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/style><h2 class=\"elementor-heading-title elementor-size-default\">How to add a password to your membership<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-953a574 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"953a574\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9c3266e\" data-id=\"9c3266e\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9dee218 elementor-widget elementor-widget-text-editor\" data-id=\"9dee218\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>You can set a password through the Unlock dashboard.<\/p><p>Go to &#8220;Settings &gt; Advanced&#8221; and click through.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c0dc517 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c0dc517\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8ccfe90\" data-id=\"8ccfe90\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-42408f7 elementor-widget elementor-widget-image\" data-id=\"42408f7\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 05-08-2024 *\/\n.elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=\".svg\"]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}<\/style>\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"456\" src=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/1-settings-1024x584.png\" class=\"attachment-large size-large wp-image-4255\" alt=\"\" srcset=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/1-settings-1024x584.png 1024w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/1-settings-300x171.png 300w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/1-settings-768x438.png 768w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/1-settings-1536x876.png 1536w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/1-settings-2048x1168.png 2048w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4e50d57 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4e50d57\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5550481\" data-id=\"5550481\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e0574bf elementor-widget elementor-widget-image\" data-id=\"e0574bf\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"436\" src=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/2-advanced-1024x558.png\" class=\"attachment-large size-large wp-image-4256\" alt=\"\" srcset=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/2-advanced-1024x558.png 1024w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/2-advanced-300x164.png 300w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/2-advanced-768x419.png 768w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/2-advanced-1536x838.png 1536w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/2-advanced-2048x1117.png 2048w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ea31d4f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ea31d4f\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-02e1a9a\" data-id=\"02e1a9a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b3ee890 elementor-widget elementor-widget-text-editor\" data-id=\"b3ee890\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Passwords are a type of &#8220;Hook&#8221; that extends the base functionality of an Unlock Protocol smart contract. Go to &#8220;Hooks &gt; Key Purchase Hook&#8221; and choose the &#8220;Password&#8221; hook.<\/p><p><b>Note: <\/b>Each lock can have a maximum of one of each type of hook active at any given time.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3e4296e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3e4296e\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-34f429e\" data-id=\"34f429e\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-da95378 elementor-widget elementor-widget-image\" data-id=\"da95378\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"438\" src=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/3-hooks-1024x561.png\" class=\"attachment-large size-large wp-image-4257\" alt=\"\" srcset=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/3-hooks-1024x561.png 1024w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/3-hooks-300x164.png 300w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/3-hooks-768x420.png 768w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/3-hooks-1536x841.png 1536w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/3-hooks-2048x1121.png 2048w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5437cdf elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5437cdf\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-673593a\" data-id=\"673593a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-37068ed elementor-widget elementor-widget-text-editor\" data-id=\"37068ed\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Set the password, and the number of uses you want to &#8220;cap&#8221; that password at.\u00a0<\/p><p>If you don&#8217;t want to set a usage cap for a particular password, you can set the &#8220;Number of uses&#8221; to a very large number.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-81b6b7f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"81b6b7f\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-dfb9b3f\" data-id=\"dfb9b3f\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6a455ce elementor-widget elementor-widget-image\" data-id=\"6a455ce\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"446\" src=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/4-password-1024x571.png\" class=\"attachment-large size-large wp-image-4258\" alt=\"\" srcset=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/4-password-1024x571.png 1024w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/4-password-300x167.png 300w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/4-password-768x428.png 768w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/4-password-1536x857.png 1536w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/4-password-2048x1143.png 2048w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-46d830b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"46d830b\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0bfd2a3\" data-id=\"0bfd2a3\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3bfd869 elementor-widget elementor-widget-text-editor\" data-id=\"3bfd869\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Once your password is set, click &#8220;Add&#8221; and sign the transaction. The password will now be enabled for your lock.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cda36dc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cda36dc\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bc55568\" data-id=\"bc55568\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9b88b17 elementor-widget elementor-widget-image\" data-id=\"9b88b17\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"411\" src=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/5-password-complete-1024x526.png\" class=\"attachment-large size-large wp-image-4259\" alt=\"\" srcset=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/5-password-complete-1024x526.png 1024w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/5-password-complete-300x154.png 300w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/5-password-complete-768x394.png 768w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/5-password-complete-1536x789.png 1536w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/5-password-complete-2048x1051.png 2048w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-49b3d1c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"49b3d1c\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b6ed411\" data-id=\"b6ed411\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-90d0fbd elementor-widget elementor-widget-text-editor\" data-id=\"90d0fbd\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>You may want to set multiple passwords for a lock, in the case where you have different parts of your community for which you want to have differing passwords with differing usage caps. (For example, an event organizer may want to distribute different passwords to different sponsorship partners.)<br><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>This guide shows you how you can use the powerful hook mechanism to password-protect your lock so that only users who know the password can purchase memberships from your contract.<\/p>\n","protected":false},"author":2,"featured_media":2458,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-2462","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guide"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Password Protected NFT Memberships - Unlock Guides<\/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:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Password Protected NFT Memberships - Unlock Guides\" \/>\n<meta property=\"og:description\" content=\"This guide shows you how you can use the powerful hook mechanism to password-protect your lock so that only users who know the password can purchase memberships from your contract.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/\" \/>\n<meta property=\"og:site_name\" content=\"Unlock Guides\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-15T23:53:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-06T22:59:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/password-guides.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"1200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Julien Genestoux\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@julien51\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Julien Genestoux\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/\",\"url\":\"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/\",\"name\":\"Password Protected NFT Memberships - Unlock Guides\",\"isPartOf\":{\"@id\":\"https:\/\/unlock-protocol.com\/guides\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/password-guides.png\",\"datePublished\":\"2022-09-15T23:53:26+00:00\",\"dateModified\":\"2024-04-06T22:59:53+00:00\",\"author\":{\"@id\":\"https:\/\/unlock-protocol.com\/guides\/#\/schema\/person\/660c6488569d0c3ada5b447eb9d78214\"},\"breadcrumb\":{\"@id\":\"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/#primaryimage\",\"url\":\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/password-guides.png\",\"contentUrl\":\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/password-guides.png\",\"width\":1800,\"height\":1200},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https:\/\/unlock-protocol.com\/guides\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Password Protected NFT Memberships\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unlock-protocol.com\/guides\/#website\",\"url\":\"https:\/\/unlock-protocol.com\/guides\/\",\"name\":\"Unlock Guides\",\"description\":\"Connect with your 1000 true fans with membership NFT\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unlock-protocol.com\/guides\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/unlock-protocol.com\/guides\/#\/schema\/person\/660c6488569d0c3ada5b447eb9d78214\",\"name\":\"Julien Genestoux\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/unlock-protocol.com\/guides\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32c86318c1d0ded9fdb51a5f9d7131089093fcf56a25225870fefab0955ec0bb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32c86318c1d0ded9fdb51a5f9d7131089093fcf56a25225870fefab0955ec0bb?s=96&d=mm&r=g\",\"caption\":\"Julien Genestoux\"},\"description\":\"Founder, CEO at Unlock Protocol\",\"sameAs\":[\"https:\/\/ouvre-boite.com\",\"https:\/\/x.com\/julien51\"],\"url\":\"https:\/\/unlock-protocol.com\/guides\/author\/juliengenestoux\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Password Protected NFT Memberships - Unlock Guides","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:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/","og_locale":"en_US","og_type":"article","og_title":"Password Protected NFT Memberships - Unlock Guides","og_description":"This guide shows you how you can use the powerful hook mechanism to password-protect your lock so that only users who know the password can purchase memberships from your contract.","og_url":"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/","og_site_name":"Unlock Guides","article_published_time":"2022-09-15T23:53:26+00:00","article_modified_time":"2024-04-06T22:59:53+00:00","og_image":[{"width":1800,"height":1200,"url":"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/password-guides.png","type":"image\/png"}],"author":"Julien Genestoux","twitter_card":"summary_large_image","twitter_creator":"@julien51","twitter_misc":{"Written by":"Julien Genestoux","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/","url":"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/","name":"Password Protected NFT Memberships - Unlock Guides","isPartOf":{"@id":"https:\/\/unlock-protocol.com\/guides\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/#primaryimage"},"image":{"@id":"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/#primaryimage"},"thumbnailUrl":"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/password-guides.png","datePublished":"2022-09-15T23:53:26+00:00","dateModified":"2024-04-06T22:59:53+00:00","author":{"@id":"https:\/\/unlock-protocol.com\/guides\/#\/schema\/person\/660c6488569d0c3ada5b447eb9d78214"},"breadcrumb":{"@id":"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/#primaryimage","url":"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/password-guides.png","contentUrl":"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/09\/password-guides.png","width":1800,"height":1200},{"@type":"BreadcrumbList","@id":"https:\/\/unlock-protocol.com\/guides\/password-protected-nft-memberships\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Guides","item":"https:\/\/unlock-protocol.com\/guides\/"},{"@type":"ListItem","position":2,"name":"Password Protected NFT Memberships"}]},{"@type":"WebSite","@id":"https:\/\/unlock-protocol.com\/guides\/#website","url":"https:\/\/unlock-protocol.com\/guides\/","name":"Unlock Guides","description":"Connect with your 1000 true fans with membership NFT","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unlock-protocol.com\/guides\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/unlock-protocol.com\/guides\/#\/schema\/person\/660c6488569d0c3ada5b447eb9d78214","name":"Julien Genestoux","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/unlock-protocol.com\/guides\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32c86318c1d0ded9fdb51a5f9d7131089093fcf56a25225870fefab0955ec0bb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32c86318c1d0ded9fdb51a5f9d7131089093fcf56a25225870fefab0955ec0bb?s=96&d=mm&r=g","caption":"Julien Genestoux"},"description":"Founder, CEO at Unlock Protocol","sameAs":["https:\/\/ouvre-boite.com","https:\/\/x.com\/julien51"],"url":"https:\/\/unlock-protocol.com\/guides\/author\/juliengenestoux\/"}]}},"_links":{"self":[{"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/posts\/2462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/comments?post=2462"}],"version-history":[{"count":0,"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/posts\/2462\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/media\/2458"}],"wp:attachment":[{"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/media?parent=2462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/categories?post=2462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/tags?post=2462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}