diff --git a/scripts/payload.js b/scripts/payload.js index 16034b6..12a06c7 100644 --- a/scripts/payload.js +++ b/scripts/payload.js @@ -3,7 +3,7 @@ const query = `query ListFirewallEvents($zoneTag: string, $filter: FirewallEvent zones(filter: { zoneTag: $zoneTag }) { firewallEventsAdaptive( filter: $filter, - limit: 1800, + limit: 1500, orderBy: [datetime_DESC] ) { action diff --git a/scripts/sefinekAPI.js b/scripts/sefinekAPI.js index 690d4b8..67b3a54 100644 --- a/scripts/sefinekAPI.js +++ b/scripts/sefinekAPI.js @@ -9,10 +9,12 @@ module.exports = async () => { const reportedIPs = readReportedIPs().filter(x => x.status === 'REPORTED' && x.ip !== clientIp.getAddress() && + !x.endpoint.includes('/api') && // API requests !['//video', '//js', '//images', '//imgs', 'favicon.ico'].some(endpoint => x.endpoint.includes(endpoint)) && // Endpoints ['api.', 'cdn.'].some(prefix => x.hostname.startsWith(prefix)) && // Domains x.hostname !== 'blocklist.sefinek.net' && // Domain - !['Chrome/129', 'Chrome/130'].some(agent => x.useragent.includes(agent)) && // User-agents + !['Chrome/129', 'Chrome/130', 'Chrome/131', 'Chrome/132'].some(agent => x.useragent.includes(agent)) && // User-agents + !(/crawler|spider|bot/gi).test(x.useragent) && // Bots !x.sefinekAPI ); if (!reportedIPs.length) return;