Hyde Security JS
Professional client-side security library for modern web applications
Overview
Hyde Security JS is a comprehensive client-side security library designed to protect web applications from common threats including XSS attacks, malicious debugging, bot activity, and DOM tampering. It's built for developers who demand production-grade security in their frontend applications.
The library provides easy-to-use APIs with minimal configuration and zero dependencies.
Core Features
DevTools Detection
Detect when browser developer tools are open and respond accordingly.
XSS Protection
Sanitize and validate user inputs to prevent cross-site scripting attacks.
Anti-Debug
Prevent code execution in debug mode and freeze debuggers.
Session Protection
Secure session management with token validation and expiration.
Bot Detection
Identify and block automated bot traffic patterns.
DOM Protection
Prevent unauthorized DOM manipulation and tampering attempts.
Quick Start
Basic Setup
Advanced Setup
API Reference
DevTools Detection
Detects when browser developer tools are opened. Triggers callbacks when detected.
XSS Protection
Sanitizes user inputs and validates HTML to prevent XSS attacks.
Anti-Debug
Prevents code execution in debug mode and freezes debugger instances.
Session Protection
Manages secure session tokens with automatic expiration and validation.
Bot Detection
Identifies suspicious bot patterns and automated traffic.
DOM Protection
Monitors and prevents unauthorized DOM modifications.
Configuration Options
Best Practices
-
Server-Side Validation - Always validate on the server, never rely solely on client-side checks.
-
HTTPS Only - Always serve your application over HTTPS.
-
Keep Updated - Regularly update the library to get security patches.
-
Implement CSP - Use Content Security Policy headers for defense-in-depth.
-
Rate Limiting - Implement server-side rate limiting for sensitive operations.
Examples
Protecting a Form
Session Management
Support & Resources
Access source code, NPM packages, and issue tracking for Hyde Security JS.