Returns information about DNS requests that were blocked by the DNS Protection service.

GET {{baseUrl}}/api/console/gsm/:gsmKey/sites/:siteId/dnsp/blockedtraffic?startDate=2022-10-30T10:36:04.9504689Z&endDate=2022-11-29T10:36:04.9504689Z&pageSize=1000&pageNr=1

NOTE: The maximum allowed time difference between 'startDate' and 'endDate' is 30 days.

WARNING: The maximum number of returned traffic records is limited to ensure that requests can complete in reasonable time. The amount of data accumulating over an increasing timespan can become very large, reaching into the millions of records for the maximum allowed time interval of 30 days. When querying blocked traffic for high-use sites, it is advised to query more regularly for shorter periods of time, instead of trying to pull the entire data once per month only.

Request Params

KeyDatatypeRequiredDescription
startDatestringIf specified, returns blocked requests after (or at) the given date. If omitted, defaults to 'endDate' minus 24 hours.
endDatestringIf specified, returns blocked requests before (or at) the given date. If omitted, defaults to the current date and time.
pageSizenumberSpecifies the maximum number of records to return. Valid values are between 100 and 10000.
pageNrnumberSpecifies the page number. Can be used to retrieve the next batch of records.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"MoreAvailable":false,"PageNr":1,"PageSize":1000,"StartDate":"2022-11-28T10:36:04.9504689Z","EndDate":"2022-11-29T10:36:04.9504689Z","SiteId":"5203ba67-85c8-428e-9e1e-29a83ad022de","SiteName":"Site 1","BlockedRequests":[{"Timestamp":"2022-11-29T10:35:04.9504689Z","HostName":"MyComputer1","UserName":"User1","AgentVersion":"1.2.1.28","SourceIp":"95.79.51.151","Domain":"www.blocked-domain1.com","DomainIps":["95.136.192.78","95.132.193.218"],"CategoryIds":[50,57],"BlockReasonId":3},{"Timestamp":"2022-11-29T10:34:04.9504689Z","HostName":"MyComputer2","UserName":"User2","AgentVersion":"1.2.1.28","SourceIp":"95.141.94.92","Domain":"www.blocked-domain2.com","DomainIps":["95.4.64.35","95.55.98.204"],"CategoryIds":[51,58],"BlockReasonId":1}]}