Express/HTTP middleware that inspects request URLs and bodies for SQL injection patterns (SQL keywords, special characters) and blocks them with a 403 response. Version 0.1.0, last updated in 2017, no recent releases. Provides four security levels (silent, typical, elevated, paranoid) with hierarchical checks. Intended as one layer of defense; not a substitute for proper query validation or parameterized queries. Minimal configuration, but very limited maintenance and community adoption.
npm install sql-inject-rejectNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up the middleware with Express, configuring security level and custom keywords.
Choose level carefully and test with your application traffic.
Run 'npm install sql-inject-reject' in your project directory.