Files
direct-img.link/functions/_utils/rate-limit.js
T

6 lines
318 B
JavaScript

// New searches (cache misses) allowed per IP per day, reset at 00:00 UTC. Cache hits never count.
// Safe to edit by hand; also update the numbers in README.md and index.html.
// The burst limit (~10 req/10s) is a Cloudflare WAF rule, not set here.
export const DAILY_LIMIT = 35;
export const FREE_DAILY_LIMIT = 100;