Input Sanitization & Security Packages
Input sanitization, XSS prevention, and application-security utilities that clean untrusted input before it reaches your rendering or storage layer (DOMPurify).
Packages in Input Sanitization & Security
Kind
Sort:Used by Most Apps
validator.js
A dependency-free library of 100+ string validators and sanitizers for Node.js and the browser.
markupsafe
Escapes untrusted strings for safe use in HTML and XML markup, preventing injection attacks in templated output.
express-validator
A chainable Express middleware that wraps validator.js to validate and sanitize incoming request data with minimal boilerplate.
govalidator
A comprehensive Go package of string, numeric, and struct validators and sanitizers, modeled on validator.js.
slowapi
Rate limiting for Starlette and FastAPI endpoints, adapted from Flask-Limiter.
Flask-Limiter
Rate limiting for Flask applications with pluggable storage backends and per-route limits
django-csp
Content-Security-Policy header management for Django, with per-view overrides and nonce support.
Bandit
A static analysis tool that scans Python code for common security issues.
free-email-domains
A continuously updated JSON list of free and disposable email domains for filtering signups and scoring leads.
python-ipware
Retrieve a client's real IP address from HTTP request headers, with proxy handling.
Presidio Analyzer
The PII detection engine behind Presidio, combining NER, regex, and checksum recognizers
graphql-query-complexity
Query complexity analysis and validation to protect graphql-js servers
RestrictedPython
Compiles a restricted subset of Python so you can define a trusted boundary for running untrusted code.
simpleeval
A single-file Python library for safely evaluating user-supplied expressions without exposing full eval() access.
laravel-recaptcha
Drop-in Laravel package for embedding and validating Google reCAPTCHA v2 and v3 in your forms.
pathvalidate
A zero-dependency Python library that sanitizes and validates filenames, file paths, and LTSV labels across Windows, Linux, macOS, and POSIX platforms.
confusable_homoglyphs
Detect dangerous Unicode homoglyphs and mixed-script strings to stop impersonation attacks
altcha
Create and verify ALTCHA proof-of-work CAPTCHA challenges in Python with a zero-dependency, fully typed library.
valid-data-url
Lightweight regex-based validator that checks whether a string is a well-formed RFC 2397 data URL.
Joomla Filter
Joomla Framework package for sanitizing and validating input and cleaning output in PHP
validators
A lightweight PHP validator library with 25+ composable rules for text, network, and structured JSON input validation.
URL Validator
Validate URLs and IP addresses before opening a connection to guard PHP apps against SSRF and DNS rebinding.