mirror of
https://github.com/direct-img/direct-img.link.git
synced 2026-03-17 03:01:01 +00:00
Feat: Increase daily search rate limit to 35
This commit is contained in:
@@ -128,7 +128,7 @@ export async function onRequest(context) {
|
||||
}));
|
||||
}
|
||||
|
||||
if (count > 15) {
|
||||
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 env.ASSETS.fetch(new Request(new URL("/limit.webp", url.origin)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user