MAX_URL_LENGTH 920
This commit is contained in:
parent
0f90d8ebc0
commit
c266d520be
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ const REPORTED_IP_COOLDOWN_MS = 6 * 60 * 60 * 1000; // 6h
|
||||||
|
|
||||||
// The maximum URI length that can be reported to AbuseIPDB.
|
// The maximum URI length that can be reported to AbuseIPDB.
|
||||||
// If Cloudflare returns a longer URI, the API request will fail.
|
// 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.
|
// Additional delay after each successful IP report to avoid overloading the AbuseIPDB API.
|
||||||
const SUCCESS_COOLDOWN_MS = 2 * 1000; // 2s
|
const SUCCESS_COOLDOWN_MS = 2 * 1000; // 2s
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue