Search Results :

×

How to setup NFT Token Gating for WordPress Site


NFT token gating is a method of restricting access to certain digital content, services, or experiences based on the ownership of non-fungible tokens (NFTs). When a user tries to access token-gated content, they must connect their cryptocurrency wallet to verify their NFT ownership.
If the user holds the required NFTs, they are granted access to the exclusive content or experience. However, if the user does not own the necessary NFTs, they don't get access to exclusive content as they don't possess the prerequisite authorization based on NFT ownership. This allows NFT creators to provide special benefits and a sense of exclusivity to their most dedicated community members, while also creating new revenue streams.


Prerequisites: Download and Installation

  • Log into your WordPress instance as an admin.
  • Go to the WordPress Dashboard -> Plugins and click on Add New.
  • Search for a WordPress Web3 Authentication plugin and click on Install Now.
  • Once installed click on Activate.

1. Steps to configure the Contract Address

  • Click on the Contract Address Config tab within our WP Web3 plugin.
  • WP Web3- NFT Token Gating configure address tab
  • Click the Add Token Details button; this action will prompt a modal popup.
  • WP Web3- NFT Token Gating add configuration button
  • Fill the required details in the popup as shown below.
  • Note: If you're using the Algorand blockchain, please refer to this link.

    Blockchain: Choose the blockchain (Ethereum/Polygon/Cronos) where your NFT/tokens are created.
    Contract Address Name: Assign any name to this field (e.g., space-punk-club). This name will reference the entire configuration.
    Contract Address: Input the collection address/contract address of your NFT collection. If you don't have one, please click here to learn more.
    No. of tokens (optional): Specify the minimum number of tokens/NFTs a user must hold to access gated content. For instance, if x = 5, users must possess at least 5 tokens/NFTs to gain access.
    Token IDs (optional): If you want users to hold specific NFTs, you can specify the token IDs. If there are multiple token IDs, separate them with commas (e.g., 1,2,3,4,5,6). Only users with the configured token IDs will access the gated page.
    Loopering API Key: Enter your API Key for the Loopering blockchain. Learn how to obtain the Loopering API key by clicking here. (This field is only applicable for the LOOPERING blockchain.)
    WP Web3- NFT Token Gating add token details tab
  • Once you have filled in all the details, click the Add button, and you will see the configuration details.
  • WP Web3- NFT Token Gating added details successfully

2. Configure NFT Content Restriction

  • Go to NFT Content Restriction tab and click on Add Content Gating Details button.
  • wordpress-web3-nft-token-gating
  • A modal popup will appear on screen, fill in the required details:
    • Page URL Regex: Enter the page url that you want to restrict, also you can restrict all the child page of a parent page.
      For e.g let say the page url is (https://domain/site-name/parent-page/)

      If you configure this as Page URL Regex then all the child page extending this URL will get restricted too .

        https://domain/site-name/parent-page/child-page-1

        https://domain/site-name/parent-page/child-page-2

        https://domain/site-name/parent-page/child-page-3 …. and so on

    • Contract Address Name: Now you can select the contract address Name from the dropdown, it is the same Contract Address Name that we configured in the Contract Address Config tab, and it refers all the configuration correspondence to it.
    • Error URL: If user does not hold any NFT, and tries to access the gated content then where that user should be redirected to. For e.g you can design a customize page that describe that “you do not appropriate to access this page”, also you can provide link to purchase those NFT.
  • Once you configured all the details click on Add button. Likewise, you can add more details.
  • WP Web3- NFT Token Gating add content gating details

3. Test Configuration

  • Click on Test Configuration button to test the configuration for any wallet address.
  • WP Web3- NFT Token Gating click test configuration
  • Enter the wallet address you wish to test the configurations against, choose the corresponding blockchain, and then click on submit.
  • WP Web3- NFT Token Gating click on submit button
  • Upon clicking the submit button, you'll receive the configuration results for that wallet address as shown.
  • WP Web3- NFT Token Gating test result

Congratulations! You have successfully configured NFT Token Gating for your WordPress site using our WP Web3 Authentication plugin.



Additional Resources


Need Help?

Mail us on web3@xecurify.com for quick guidance(via email/meeting) on your requirement and our team will help you to select the best suitable solution/plan as per your requirement.



Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com