{"id":283346,"date":"2026-03-19T20:58:30","date_gmt":"2026-03-19T20:58:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/magic-link-access-based-on-email-domain\/"},"modified":"2026-03-19T20:58:21","modified_gmt":"2026-03-19T20:58:21","slug":"nextfly-domain-restricted-access","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/nextfly-domain-restricted-access\/","author":21017738,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.0","tested":"6.9.4","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"Nextfly Domain Restricted Access","header_author":"NEXTFLY\u00ae Web Design","header_description":"A WordPress plugin that requires email validation for page\/post access.","assets_banners_color":"","last_updated":"2026-03-19 20:58:21","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/nextflywebdesign.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":141,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"nextfly","date":"2026-03-19 20:58:21"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3486824,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3486824,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3486824,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3486824,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3486824,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"<strong>Settings Page:<\/strong> Configure email templates and cookie duration.","2":"<strong>Metabox:<\/strong> Easily add authorized domains to any post or page.","3":"<strong>Frontend Form:<\/strong> The clean, simple email request form presented to users."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1912,18971,185112,258155,41789],"plugin_category":[],"plugin_contributors":[236882],"plugin_business_model":[],"class_list":["post-283346","plugin","type-plugin","status-publish","hentry","plugin_tags-access-control","plugin_tags-email-verification","plugin_tags-magic-link","plugin_tags-nextfly","plugin_tags-restricted-access","plugin_contributors-nextfly","plugin_committers-nextfly"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/nextfly-domain-restricted-access\/assets\/icon-128x128.png?rev=3486824","icon_2x":"https:\/\/ps.w.org\/nextfly-domain-restricted-access\/assets\/icon-256x256.png?rev=3486824","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/nextfly-domain-restricted-access\/assets\/screenshot-1.png?rev=3486824","caption":"<strong>Settings Page:<\/strong> Configure email templates and cookie duration."},{"src":"https:\/\/ps.w.org\/nextfly-domain-restricted-access\/assets\/screenshot-2.png?rev=3486824","caption":"<strong>Metabox:<\/strong> Easily add authorized domains to any post or page."},{"src":"https:\/\/ps.w.org\/nextfly-domain-restricted-access\/assets\/screenshot-3.png?rev=3486824","caption":"<strong>Frontend Form:<\/strong> The clean, simple email request form presented to users."}],"raw_content":"<!--section=description-->\n<p>Nextfly Domain Restricted Access allows you to restrict post and page access to specific email domains. Users must validate their email address via a unique magic link sent to their inbox.<\/p>\n\n<p>This plugin is perfect for internal company portals, client-specific pages, or any content that should be accessible only to users with a specific email domain (e.g., <code>@company.com<\/code>).<\/p>\n\n<p><strong>Key Features:<\/strong>\n*   <strong>Domain-Based Restriction:<\/strong> Easily whitelist email domains for any post or page.\n*   <strong>Secure Magic Links:<\/strong> Users receive a time-sensitive, one-time-use access link via email.\n*   <strong>No Passwords Required:<\/strong> Simplifies user experience by eliminating the need for passwords.\n*   <strong>Customizable Emails:<\/strong> Configure the email subject and body template.\n*   <strong>Cookie-Based Access:<\/strong> Set how long access remains valid (default: 7 days).\n*   <strong>Developer Friendly:<\/strong> Includes hooks for extending functionality.<\/p>\n\n<h3>Usage<\/h3>\n\n<p><strong>To Protect a Post\/Page:<\/strong>\n1.  Edit any post or page you want to protect.\n2.  Look for the <strong>\"Nextfly Domain Restricted Access\"<\/strong> metabox in the sidebar.\n3.  Enter the authorized email domains (one per line, e.g., <code>company.com<\/code>).\n4.  Update or Publish the post.<\/p>\n\n<p><strong>To Configure Settings:<\/strong>\n1.  Navigate to <strong>Settings &gt; Nextfly Domain Restricted Access<\/strong>.\n2.  Customize the email subject and body (use <code>%access_link%<\/code> as a placeholder).\n3.  Set the cookie duration (how long a user stays logged in).\n4.  Select the Redirect Page (where users are sent to login).<\/p>\n\n<h3>Developers<\/h3>\n\n<p>The plugin includes hooks to extend its functionality.<\/p>\n\n<p><strong>Filters:<\/strong>\n    nfdra_post_types - Add support for custom post types.\n    nfdra_email_headers - Modify email headers (e.g., add BCC).<\/p>\n\n<p><strong>Actions:<\/strong>\n    nfdra_before_send_email - Fires before email is sent.\n    nfdra_after_send_email - Fires after email is sent.\n    nfdra_access_granted - Fires when user is granted access.\n    nfdra_access_denied - Fires when access token is invalid.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>nextfly-domain-restricted-access<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Go to <strong>Settings &gt; Nextfly Domain Restricted Access<\/strong> to configure the plugin.<\/li>\n<li>Create a dedicated page and add the <code>[nextfly_domain_restricted_access]<\/code> shortcode. This page will display the email input form.<\/li>\n<li>In the plugin settings, set this new page as the \"Redirect Page\".<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"can%20i%20use%20this%20for%20multiple%20domains%3F\"><h3>Can I use this for multiple domains?<\/h3><\/dt>\n<dd><p>Yes! You can enter multiple authorized domains for a single post\/page, one per line.<\/p><\/dd>\n<dt id=\"how%20long%20does%20the%20access%20link%20last%3F\"><h3>How long does the access link last?<\/h3><\/dt>\n<dd><p>The magic link itself expires after 24 hours or after a single use. Once used, a cookie is set for the user, which remains valid based on your \"Cookie Duration\" setting (default 7 days).<\/p><\/dd>\n<dt id=\"does%20this%20work%20with%20custom%20post%20types%3F\"><h3>Does this work with custom post types?<\/h3><\/dt>\n<dd><p>Yes, but you need to enable it. Use the <code>nfdra_post_types<\/code> filter to add your custom post type slug to the supported list. See the \"Developers\" section for details.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Restrict access to post and page based on authorized email domains. Users verify identity via secure email links.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/283346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=283346"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nextfly"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=283346"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=283346"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=283346"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=283346"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=283346"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=283346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}