File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ const PUBLIC_ENDPOINT_RATE_LIMIT: TokenBucketConfig = {
2626 refillIntervalMs : 60_000 ,
2727}
2828
29- /** Tighter limit for submissions that couldn't complete CAPTCHA (e.g. ad blockers). */
3029const CAPTCHA_UNAVAILABLE_RATE_LIMIT : TokenBucketConfig = {
3130 maxTokens : 3 ,
3231 refillRate : 1 ,
@@ -91,8 +90,6 @@ export const POST = withRouteHandler(async (req: NextRequest) => {
9190 expectedHostname : SITE_HOSTNAME ,
9291 } )
9392 if ( ! verification . success && verification . transportError ) {
94- // Cloudflare siteverify unreachable — fall through via the tighter no-captcha bucket
95- // so a Cloudflare outage doesn't hard-block users who completed the challenge.
9693 logger . warn (
9794 `[${ requestId } ] Captcha transport error, falling back to no-captcha rate limit` ,
9895 { ip }
You can’t perform that action at this time.
0 commit comments