@fastify/rate-limit Logo

@fastify/rate-limit

0
Free
Visit Website

A low overhead rate limiter for your routes. This plugin will add an onRequest hook to check if a client (based on their IP address) has made too many requests in the given timeWindow. Usage: Register the plugin and, if required, pass some custom options. Example: ```javascript import Fastify from 'fastify' const fastify = Fastify() await fastify.register(import('@fastify/rate-limit'), { max: 100, timeWindow: '1 minute' }) fastify.get('/', (request, reply) => { reply.send({ hello: 'world' }) }) fastify.listen({ port: 3000 }, err => { if (err) throw err console.log('Server listening at http://localhost:3000') }) ```

FEATURES

ALTERNATIVES

Akamai Client-Side Protection & Compliance is a security tool that monitors and protects against client-side threats on websites, aiding in PCI DSS v4.0 compliance.

A PHP port of Rack::Honeypot, a spam trap that detects and blocks spambots

An IDE-integrated AI security solution that detects, remediates, and educates about code vulnerabilities in real-time as developers write code.

Statistical renaming, Type inference, and Deobfuscation tool for JavaScript code.

A source code search engine for searching alphanumeric snippets, signatures, or keywords in web page HTML, JS, and CSS code.

Falco is a cloud native runtime security tool for Linux operating systems that detects and alerts on abnormal behavior and potential security threats in real-time.

A lightweight web application firewall that protects modern applications and APIs across distributed architectures with integrated DoS protection, bot defense, and DevOps-friendly deployment options.

Utility for comparing control flow graph signatures to Android methods with scanning capabilities for malicious applications.

PINNED