ModGuard: Validate & Sanitize User Inputs
Protect your application from common injection attacks with ModGuard's security validation API. Built for developers or any who need reliable input detection and sanitization without implementing complex security logic. 🛡️ What ModGuard Detects - XSS (Cross-Site Scripting) Injections - SQL Injection most common Attack Patterns. - Command Injection - Path Traversal - Possible Secrets/Credentials…
ModGuard: Validate & Sanitize User Inputs endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST |
Custom Detect - Process multiple inputs with custom detectors /api/v1/detect/custom |
Batch scan: runs all detectors against multiple inputs at once (max 20). Returns per-input results with all detections. |
| POST |
Detect SQLI /api/v1/detect/sqli |
Detect SQL Injection (SQLi) attempts. Identifies UNION-based, boolean-based, and other SQL injection patterns. |
| POST |
Detect CMDI /api/v1/detect/sqli |
Detect OS Command Injection patterns. Identifies shell metacharacters, command chaining, and dangerous system commands. |
| POST |
Detect XSS /api/v1/detect/xss |
Detect Cross-Site Scripting (XSS) patterns in the input string. Identifies script injections, event handlers, and malicious HTML. |
| POST |
Detect Secrets /api/v1/detect/secrets |
Detect leaked secrets and credentials. Identifies API keys, tokens, private keys, and other sensitive data patterns from the most common services and platforms. |
| POST |
Detect Path Traversal /api/v1/detect/path-traversal |
Detect Path Traversal attempts. Identifies directory traversal sequences, null bytes, and encoded bypasses. Returns a sanitized safe path. |
| GET |
Health /health |
Test health of API |