diff --git a/status/healthMonitor.js b/status/healthMonitor.js index 8bd193d..54b21d4 100644 --- a/status/healthMonitor.js +++ b/status/healthMonitor.js @@ -123,6 +123,12 @@ function HealthMonitor() { errorCount = 0; } } + // Force rate limiting of certain problematic domains + const RATE_LIMITED_DOMAINS = ['publicnode.com', 'pupmos.network'] + const hostname = new URL(finalAddress).hostname + if(RATE_LIMITED_DOMAINS.some(domain => hostname.includes(domain))){ + rateLimitedAt = Date.now() + } } rateLimited = rateLimitedAt && rateLimitedAt > Date.now() - 1000 * RATE_LIMIT_COOLDOWN