Update comment

This commit is contained in:
Sefinek 2024-09-18 12:58:26 +02:00
parent 81c7fd21c4
commit 0f5a821274

View file

@ -1,7 +1,7 @@
module.exports = it => { module.exports = it => {
const fields = [ const fields = [
{ label: 'Action taken', value: it.action?.toUpperCase() }, { label: 'Action taken', value: it.action?.toUpperCase() },
{ label: 'ASN', value: `${it.clientAsn} (${it.clientASNDescription})` }, { label: 'ASN', value: `${it.clientAsn} (${it.clientASNDescription}) [${it.clientCountryName}]` },
{ label: 'Protocol', value: `${it.clientRequestHTTPProtocol} (method ${it.clientRequestHTTPMethodName})` }, { label: 'Protocol', value: `${it.clientRequestHTTPProtocol} (method ${it.clientRequestHTTPMethodName})` },
{ label: 'Domain', value: it.clientRequestHTTPHost }, { label: 'Domain', value: it.clientRequestHTTPHost },
{ label: 'Endpoint', value: it.clientRequestPath }, { label: 'Endpoint', value: it.clientRequestPath },
@ -16,7 +16,7 @@ module.exports = it => {
.filter(field => field.value) .filter(field => field.value)
.map(field => `${field.label}: ${field.value}`); .map(field => `${field.label}: ${field.value}`);
return `${it.clientIP} [${it.clientCountryName}] triggered Cloudflare WAF (${it.source}). return `Triggered Cloudflare WAF (${it.source}).
${reportLines.join('\n')} ${reportLines.join('\n')}
Report generated by Node-Cloudflare-WAF-AbuseIPDB https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB`; Report generated by Node-Cloudflare-WAF-AbuseIPDB https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB`;