nehonix-uri-processor
Version:
A powerful URI processor for encoding, decoding, and analyzing URI data securely.
41 lines • 1.75 kB
TypeScript
import { Request, Response, NextFunction } from "express";
/**
* Content Security Policy middleware
* Helps prevent XSS, clickjacking, and other code injection attacks
*/
export declare const setupCSP: (req: Request, res: Response, next: NextFunction) => void;
/**
* CSRF Protection middleware
* Validates that requests with cookies are from your site
*/
export declare const csrfProtection: (req: Request, res: Response, next: NextFunction) => void | Response<any, Record<string, any>>;
/**
* Trusted Proxy Configuration
* Ensures X-Forwarded-* headers are only trusted from known proxies
*/
export declare const configureTrustedProxy: (req: any, res: Response, next: NextFunction) => void;
/**
* Secure Cookie Settings
* Enhances cookie security beyond the basics
*/
export declare const secureCoookieSettings: (req: Request, res: Response, next: NextFunction) => void;
/**
* Request Validation middleware
* Validates incoming requests for required fields and proper formatting
*/
export declare const validateRequest: (req: Request, res: Response, next: NextFunction) => Response<any, Record<string, any>> | undefined;
/**
* IP Filtering middleware
* Blocks requests from suspicious or banned IP addresses
*/
export declare const ipFilter: (req: Request, res: Response, next: NextFunction) => Response<any, Record<string, any>> | undefined;
/**
* Security Headers middleware
* Sets additional security headers beyond what Helmet provides
*/
export declare const additionalSecurityHeaders: (req: Request, res: Response, next: NextFunction) => void;
/**
* Apply all security middleware to an Express application
*/
export declare const applySecurityMiddleware: (app: any) => any;
//# sourceMappingURL=EXPRESS.shield.d.ts.map