// Rate limitting const clientIP = request.headers.get('cf-connecting-ip'); const { success } = await env.RATE_LIMITER.limit({ key: clientIP || '' }); // key can be any string of your choosing if (!success) { // Return 403 Forbidden for disallowed origins console.log(clientIP, success); return new Response(`429 Failure – rate limit exceeded`, { status: 429 }); }