The Detection on Demand web portal provides the ability to restrict access to individual API keys via IP address ranges. This is useful for limiting the use of an API key to traffic that comes from a whitelist of IP addresses. If an API key should only be used by machines inside your company network, then you can add your company's public IP address range to the whitelist, and all other sources of traffic will be blocked.
Login to the DoD portal and navigate to the
Settings tab. On the left hand side, click on
Add new IP Restriction, select an API key, and enter a comma seperated list of IP address ranges (ex. 126.96.36.199/24,188.8.131.52/24). Click on the
Enable button to turn the restriction on and click
The DoD API server will only accept requests for that API key if they originate from within the allowed IP range.
You can modify IP restrictions by clicking on the
Edit button for the restriction and changing the settings. Make sure to click
Save to apply your changes.