Restricting Access to Detection on Demand

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.

Adding an IP Restriction

Login to the DoD portal and navigate to the Settings tab. On the left hand side, click on IP Restriction(s).

IP Restriction

Click on Add new IP Restriction, select an API key, and enter a comma seperated list of IP address ranges (ex. 192.16.2.0/24,192.17.1.0/24). Click on the Enable button to turn the restriction on and click Save.

New IP Restriction

The DoD API server will only accept requests for that API key if they originate from within the allowed IP range.

Modifying an IP Restriction

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.

Edit IP Restriction