+1 would love to see referrer info in firewall events GUI dashboard. Though @ncano is correct it’s available in Firewall GraphQL API too
example me filtering Firewall GraphQL for past 24hrs for a specific IP and filter only for block requests and limit output to 2 entries for specific hostname = domain.com
as you can see referrer info is there too
./cf-analytics-graphql.sh ip-hrs 24 198.144.149.253 block 2 domain.com
{ "query":
"query {
viewer {
zones(filter: {zoneTag: $zoneTag}) {
firewallEventsAdaptiveGroups(
limit: $limit,
filter: $filter,
orderBy: [datetime_ASC]
) {
dimensions {
action
botScore
botScoreSrcName
source
datetime
clientIP
clientAsn
clientCountryName
edgeColoName
clientRequestHTTPProtocol
clientRequestHTTPHost
clientRequestPath
clientRequestQuery
clientRequestScheme
clientRequestHTTPMethodName
clientRefererHost
clientRefererPath
clientRefererQuery
clientRefererScheme
edgeResponseStatus
clientASNDescription
userAgent
kind
originResponseStatus
ruleId
rayName
}
}
}
}
}",
"variables": {
"zoneTag": "zoneid",
"limit": 2,
"filter": {
"clientIP": "198.144.149.253",
"action": "block",
"clientRequestHTTPHost": "domain.com",
"datetime_geq": "2021-03-27T11:36:39Z",
"datetime_leq": "2021-03-28T11:36:39Z"
}
}
}
------------------------------------------------------------------
Cloudflare Firewall
------------------------------------------------------------------
since: 2021-03-27T11:36:39Z
until: 2021-03-28T11:36:39Z
------------------------------------------------------------------
2 Firewall Events for Request IP: 198.144.149.253
------------------------------------------------------------------
198.144.149.253 636857d7bdd14004 403 1xHeuristics block 7040 NETMINDERS CA YYZ 2021-03-27T11:40:18Z domain.com GET HTTP/1.0 /login/
198.144.149.253 63692692ad403ff1 403 1xHeuristics block 7040 NETMINDERS CA YYZ 2021-03-27T14:01:26Z domain.com GET HTTP/1.0 /login/
------------------------------------------------------------------
{
"results": [
{
"action": "block",
"botScore": 1,
"botScoreSrcName": "Heuristics",
"clientASNDescription": "NETMINDERS",
"clientAsn": "7040",
"clientCountryName": "CA",
"clientIP": "198.144.149.253",
"clientRefererHost": "domain.com",
"clientRefererPath": "/login/",
"clientRefererQuery": "",
"clientRefererScheme": "https",
"clientRequestHTTPHost": "domain.com",
"clientRequestHTTPMethodName": "GET",
"clientRequestHTTPProtocol": "HTTP/1.0",
"clientRequestPath": "/login/",
"clientRequestQuery": "",
"clientRequestScheme": "https",
"datetime": "2021-03-27T11:40:18Z",
"edgeColoName": "YYZ",
"edgeResponseStatus": 403,
"kind": "firewall",
"originResponseStatus": 0,
"rayName": "636857d7bdd14004",
"ruleId": "bd706145258349c686ddb32b94dxxxxx",
"source": "firewallrules",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36 Edg/83.0.478.37"
},
{
"action": "block",
"botScore": 1,
"botScoreSrcName": "Heuristics",
"clientASNDescription": "NETMINDERS",
"clientAsn": "7040",
"clientCountryName": "CA",
"clientIP": "198.144.149.253",
"clientRefererHost": "domain.com",
"clientRefererPath": "/login/",
"clientRefererQuery": "",
"clientRefererScheme": "https",
"clientRequestHTTPHost": "domain.com",
"clientRequestHTTPMethodName": "GET",
"clientRequestHTTPProtocol": "HTTP/1.0",
"clientRequestPath": "/login/",
"clientRequestQuery": "",
"clientRequestScheme": "https",
"datetime": "2021-03-27T14:01:26Z",
"edgeColoName": "YYZ",
"edgeResponseStatus": 403,
"kind": "firewall",
"originResponseStatus": 0,
"rayName": "63692692ad403ff1",
"ruleId": "bd706145258349c686ddb32b94dxxxxx",
"source": "firewallrules",
"userAgent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"
}
]
}