# Web security middleware

> AI-ranked search results for `web security middleware` on awesome-repositories.com — ordered by an LLM for relevance, best match first. 115 total matches; showing the top 16.

Explore on the web: https://awesome-repositories.com/q/web-security-middleware

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [this search on awesome-repositories.com](https://awesome-repositories.com/q/web-security-middleware).**

## Results

- [spring-projects/spring-security](https://awesome-repositories.com/repository/spring-projects-spring-security.md) (9,535 ⭐) — Spring Security is a comprehensive security framework for Java applications that provides authentication and authorization for both web and non-web environments. It functions as an implementation of authentication and authorization logic integrated with the Java runtime environment to protect sensitive resources from unauthorized access.

The framework includes toolkits for implementing OpenID Connect and OAuth 2.0 authorization servers and clients, as well as tools for integrating SAML 2.0 identity providers to enable cross-domain single sign-on. It utilizes a role-based access control system
- [helmetjs/helmet](https://awesome-repositories.com/repository/helmetjs-helmet.md) (10,692 ⭐) — Helmet is an Express.js middleware library that sets a comprehensive collection of HTTP security headers to protect web applications from common vulnerabilities like cross-site scripting and clickjacking. At its core, it provides a configurable middleware system for injecting security headers into HTTP responses, with a primary focus on Content Security Policy configuration through custom directives and report-only testing modes.

The library distinguishes itself through a flexible configuration surface that supports method chaining for composing multiple headers in a single expression, as wel
- [kickstarter/rack-attack](https://awesome-repositories.com/repository/kickstarter-rack-attack.md) (5,744 ⭐) — This project is a Rack middleware rate limiter and application layer firewall for Ruby web applications. It serves as a security layer to throttle and block HTTP requests based on custom rules, protecting web servers from abusive traffic.

The system provides capabilities for IP blocking and the banning of malicious clients. It implements request safelisting to bypass restrictions for trusted users and uses time-windowed rate limiting to control request frequency.

The middleware covers traffic management and monitoring, including the ability to track request patterns and instrument traffic ev
- [authelia/authelia](https://awesome-repositories.com/repository/authelia-authelia.md) (26,785 ⭐) — Authelia is a centralized identity and access management server designed to secure web applications through unified authentication and authorization. It functions as an identity authority that enables single sign-on across diverse platforms, allowing users to access multiple services with a single set of credentials. By acting as a standards-compliant provider, it facilitates secure identity propagation and token issuance for client applications.

The platform distinguishes itself through its ability to integrate directly with web gateways as a reverse proxy authentication middleware, intercep
- [casbin/casbin](https://awesome-repositories.com/repository/casbin-casbin.md) (19,848 ⭐) — Casbin is an authorization library that provides a model-based engine for enforcing access control across diverse application environments. It decouples authorization logic from application code by using a configuration-driven approach, allowing developers to define access rules and evaluation logic independently. The system supports a wide range of access control models, including role-based, attribute-based, and relationship-based patterns, which are evaluated at runtime to determine if a subject is permitted to perform an action on a resource.

The project distinguishes itself through a hig
- [krakenjs/kraken-js](https://awesome-repositories.com/repository/krakenjs-kraken-js.md) (4,919 ⭐) — Kraken-js is a configuration-driven server manager and application framework for bootstrapping Node.js web applications. It provides a system for defining server behavior, middleware chains, and environment settings through JSON files rather than manual code.

The framework focuses on separating application logic from infrastructure setup by resolving and injecting middleware into the request chain based on external configuration. It utilizes environment-based configuration merging to override baseline settings with context-specific values during startup.

The system covers server security thr
- [nathanl/authority](https://awesome-repositories.com/repository/nathanl-authority.md) (1,197 ⭐) — Authority is an authorization framework for Ruby on Rails applications that manages user permissions and access control policies. It provides a system for encapsulating complex security logic into dedicated classes, separating these concerns from core business models.

The library enforces security rules by intercepting web requests at the controller level and validating actions against defined policies. It utilizes convention-based mapping to automatically associate models with their corresponding authorization classes, supporting both global checks and instance-aware validation for specific
- [honojs/hono](https://awesome-repositories.com/repository/honojs-hono.md) (30,994 ⭐) — Hono is a lightweight web framework built on Web Standard APIs that executes across JavaScript runtimes including Cloudflare Workers, Deno, Bun, and Node.js.
- [corazawaf/coraza](https://awesome-repositories.com/repository/corazawaf-coraza.md) (3,295 ⭐) — Coraza is a web application firewall engine designed to filter malicious HTTP traffic using standardized security directives. It functions as a library for embedding request filtering and security transaction processing directly into web servers or reverse proxies.

The engine implements the ModSecurity WAF engine and the OWASP Core Rule Set to identify and block common web attack patterns. It utilizes a library-first integration model, allowing security capabilities to be embedded into a host process as a dependency rather than running as a standalone proxy.

The project covers rule-based pat
- [symfony/security-http](https://awesome-repositories.com/repository/symfony-security-http.md) (1,712 ⭐) — This project provides a comprehensive security framework for PHP applications, designed to manage the entire lifecycle of user authentication and authorization. It functions as a middleware layer that intercepts incoming HTTP requests to enforce security policies, resolve user identities, and maintain persistent sessions across web interactions.

The framework distinguishes itself through a modular, event-driven architecture that integrates directly into the application lifecycle. It supports diverse authentication methods, including standard form-based logins, API bearer tokens, and federated
- [symfony/security](https://awesome-repositories.com/repository/symfony-security.md) (1,199 ⭐) — This project is a comprehensive security framework for PHP applications, providing a modular system for verifying user identities and enforcing access control policies. It functions as a security middleware that decouples authentication and authorization logic from core application code, allowing for centralized management of user sessions, credentials, and resource access.

The framework distinguishes itself through a highly decoupled architecture that separates identity verification from storage mechanisms. It utilizes a strategy-based approach to authentication, enabling developers to imple
- [middlewares/psr15-middlewares](https://awesome-repositories.com/repository/middlewares-psr15-middlewares.md) (411 ⭐) — Collection of PSR-15 middlewares officially developed by Middlewares organization
- [aspnet/security](https://awesome-repositories.com/repository/aspnet-security.md) (1,287 ⭐) — [Archived] Middleware for security and authorization of web apps. Project moved to https://github.com/aspnet/AspNetCore
- [nis2shield/express-nis2-middleware](https://awesome-repositories.com/repository/nis2shield-express-nis2-middleware.md) (0 ⭐) — 🛡️ NIS2 Compliance Middleware for Express.js - Forensic logging, active defense, and security headers
- [unrolled/secure](https://awesome-repositories.com/repository/unrolled-secure.md) (2,345 ⭐) — HTTP middleware for Go that facilitates some quick security wins.
- [typeerror/secure](https://awesome-repositories.com/repository/typeerror-secure.md) (1,043 ⭐) — Modern Python library for HTTP security headers with safe defaults, configurable presets, and first-class ASGI/WSGI middleware (FastAPI, Django, Flask, Shiny, and more).
