From 8b49ebdf71f6f5053183d85be9c41054e03e8be8 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Sat, 26 Sep 2026 12:42:17 -0700 Subject: [PATCH] Feat: Raise daily search limit to 35 Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- functions/[[path]].js | 2 +- index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 764b223..75f353d 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ Use images to complement your responses, powered by Brave. ### New Searches (Cache Misses) -- **20 new searches per day per IP** (resets at midnight UTC), then `limit.webp` is served — shared between `direct-img.link` and `free.direct-img.link` +- **35 new searches per day per IP** (resets at midnight UTC), then `limit.webp` is served — shared between `direct-img.link` and `free.direct-img.link` - **Cache hits are unlimited** (within WAF limits above) - Failed searches count toward the limit and are remembered for 24h (`bad.webp`) - WAF counters are approximate (not shared perfectly across Cloudflare servers), so bursts may slip slightly past 10 diff --git a/functions/[[path]].js b/functions/[[path]].js index e335f64..15209fd 100644 --- a/functions/[[path]].js +++ b/functions/[[path]].js @@ -131,7 +131,7 @@ export async function onRequest(context) { })); } - if (count > 20) { + if (count > 35) { context.waitUntil(notify(env, { title: "Rate Limit Hit", message: `IP ${ip} hit limit for: ${query}`, tags: "warning,no_entry", priority: 2 })); return asset("limit.webp"); } diff --git a/index.html b/index.html index 8e753fc..3e0a50e 100644 --- a/index.html +++ b/index.html @@ -99,7 +99,7 @@ Use images to complement your responses, powered by Brave. Burst~10 req/10s per IPHTTP 429 (~10s) - New Searches20 per day per IPLimit image served + New Searches35 per day per IPLimit image served

* The daily limit is shared with free.direct-img.link. Cached images don't count toward it and keep loading after you hit it. The burst limit applies to all image requests and is enforced approximately. The daily limit resets at 00:00 UTC.