9 min read
Overview
If you are building a front-end decentralized application (dApp), your site will need to connect to the chain with an endpoint node. You can think of your endpoint as an API key that allows you to connect to the chain. If you are using a front-end (e.g., a Candy Machine Mint Page or a Defi Application), you may be exposing your endpoint to the public. This means a malicious actor could exploit and use your private endpoint. This could run up your bill and cause other performance issues. In this guide, you will learn various strategies to protect your endpoint when using a front end:
Tactic | Ease/Complexity | Effectiveness | QuickNode Plan |
---|---|---|---|
Rotate Keys | 🟡 Moderate | 🟢 High | All plans |
Dot Env with Backend Proxy | 🟢 Easy | ⚪ Moderate | n/a |
Rate Limiting | 🟢 Easy | ⚪ Moderate | All plans |
Domain Whitelisting | 🟡 Moderate | ⚪ Moderate | All plans |
JSON Web Tokens (JWT) | 🔴 Complex | 🟢 High | All plans |
Endpoint Armor | 🟡 Moderate |