Skip to Content
ReferenceAPI referenceCrowdSec
Next: these pages describe unreleased changes on the develop branch. Read the docs for the current release

List every range under an active decision

GET
/api/v1/crowdsec/banned-ranges

Returns each CIDR that holds a Range decision from any origin, once, with the strongest decision type on it and when that decision ends. GeoMetrikks bans a single-address DROP network with an Ip decision, so that network shows as its /32 or /128 while the decision lasts. The ranges come from the decision stream the server polls, so a change can take up to CROWDSEC_STREAM_POLL_INTERVAL seconds to show.

Authorization

cookiesession<token>

Session cookie authentication.

Response Body

Request fulfilled, document follows

application/json
  1. response
[index: integer]?

A range under an active decision.

GeoMetrikks bans a single-address DROP network with an Ip decision, and that network shows as its /32 or /128.

Example Request
curl -X GET 'https://geometrikks.example.com/api/v1/crowdsec/banned-ranges'
Example Response200
[  {    "expiresAt": "2019-08-24T14:15:22Z",    "type": "string",    "value": "string"  }]