mirror of
https://github.com/direct-img/direct-img.link.git
synced 2026-10-17 18:27:52 +00:00
Fix: Lower daily search limit to 20
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -132,7 +132,7 @@ export async function onRequest(context) {
|
||||
}));
|
||||
}
|
||||
|
||||
if (count > 35) {
|
||||
if (count > 20) {
|
||||
context.waitUntil(notify(env, { title: "Rate Limit Hit", message: `IP ${ip} hit limit for: ${query}`, tags: "warning,no_entry", priority: 2 }));
|
||||
return env.ASSETS.fetch(new Request(new URL("/limit.webp", url.origin)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user