MAX_URL_LENGTH 920

This commit is contained in:
Sefinek 2024-09-08 21:34:14 +02:00
parent 0f90d8ebc0
commit c266d520be

View file

@ -8,7 +8,7 @@ const REPORTED_IP_COOLDOWN_MS = 6 * 60 * 60 * 1000; // 6h
// The maximum URI length that can be reported to AbuseIPDB.
// If Cloudflare returns a longer URI, the API request will fail.
const MAX_URL_LENGTH = 1000;
const MAX_URL_LENGTH = 920;
// Additional delay after each successful IP report to avoid overloading the AbuseIPDB API.
const SUCCESS_COOLDOWN_MS = 2 * 1000; // 2s