IP Whitelisting
IP Whitelisting
IP whitelisting is a security measure that helps protect your API from unauthorized access. It works by allowing only specific IP addresses (your API servers) to send requests to the API. This means you can add the IP addresses of the servers running your services to a whitelist, ensuring that only these trusted servers are allowed to interact with your API. Any requests coming from unapproved IPs will be blocked, providing an extra layer of security for your system.
Note: Only whitelist the IP addresses of your API servers. These servers send requests to the API on behalf of users, so user devices like phones or laptops should not be whitelisted directly.
How to Whitelist IP Addresses
-
Visit the Dashboard Settings:
- Log in to your Brails Dashboard (opens in a new tab).
-
Add an IP Address:
- Click on the "Add IP Address" button.
- Enter the IP address you want to whitelist. This action will restrict access to only the whitelisted IPs and block requests from other IP addresses, including your own if not whitelisted.
-
Confirm with 2FA:
- To complete the process, you will need to enter your two-factor authentication (2FA) code to confirm the addition.
-
View Whitelisted IPs:
- Once added, you can view all your whitelisted IP addresses in the dashboard.
Microservices and Multiple APIs:
- If you are working with multiple servers, microservices, or mobile apps, ensure you add the IP addresses for each server to your whitelist.