Manual Chapter :
Creating an HTTP Connector Request for an external IP blocklist
Applies To:
Show VersionsBIG-IP APM
- 15.1.10, 15.1.9, 15.1.8, 15.1.7, 15.1.6, 15.1.5, 15.1.4, 15.1.3, 15.1.2, 15.1.1, 15.1.0
Creating an HTTP Connector Request for an external IP blocklist
You can configure an account with Neutrino API for
this example. A free account is sufficient to test the blocklist function.
Use an HTTP Connector Request to check an IP
address against the Neutrino API blocked IP list.
- On the Main tab, click.
- In theNamefield, type a name for the HTTP Connector Request.
- Select anHTTP Connector Transport, or click the plus symbol (+) to create one.
- Type theURLon which the HTTP Connector Request action will occur.For the Neutrino API blocklist, the URL ishttps://neutrinoapi.com/ip-blocklist.
- In theMethodfield, typePOST.Neutrino API uses POST; however your external connector may require a different method.
- Specify and configure your Authentication type and parameters. For this example, because Neutrino API uses an API key, selectCustomauthentication.
- In theTokenfield, type or paste the API key (api-key) value for the Neutrino API account.For example,JsV1X4RbfCVmYPerI6324p8Cc9iKD4vbUPwLQHpsd3cO6lup3.
- In theRequest Headersfield, typeContent-Type: application/x-www-form-urlencoded.This entry is specific to Neutrino API; other applications may require a different header.
- In theRequest Bodyfield, type the request body to send.For the Neutrino API blocklist, this should be formatted asuser-id=.your-user-id&api-key=your-api-key(or api-key reference)&ip=the-IP-to-check-against-the-blocklistFor example,user-id=johndoe&api-key=%{token}&ip=%{perflow.client.ip.address}.In this example, the variabletokenis substituted with the API key from theTokenfield, and the variableperflow.client.ip.addressis substituted with the client's IP address.
- Set theResponse ActiontoParse.
- ClickSave.
The HTTP Connector Request for the Neutrino API
blocklist is now configured.
Reference this HTTP Connector Request using the
HTTP Connector access policy item in a Per-Request Policy subroutine.