SafeLine is a self-hosted WAF that sits in front of web applications to filter and monitor HTTP traffic. It aims to block common web attacks and abusive automated traffic.
Overview
SafeLine is a self-hosted web application firewall for protecting web apps from attacks and exploitation. It filters and monitors HTTP traffic between an application and the Internet, acting as a reverse proxy so clients pass through the firewall before reaching the server.
Defenses cover many attack classes, including SQL injection, XSS, code and OS command injection, CRLF and LDAP injection, XPath injection, RCE, XXE, SSRF, path traversal, backdoors, brute force, HTTP flood, and bot abuse. Operational features include IP-based rate limiting, web access control lists, anti-bot and authentication challenges, and optional dynamic encryption of HTML and JavaScript on each visit.
Integrations include an MCP server for AI-assisted management, an Ingress-NGINX plugin for Kubernetes ingress traffic, and a Kong Gateway plugin for APIs and services. A commercial PRO edition with plans and a trial is offered alongside the open project.
Installation and configuration guides are available separately. The project calls SafeLine production-ready.
Key features
- SQL injection and XSS blocking
- IP-based rate limiting
- Anti-bot challenges
- Authentication challenge gate
- Dynamic HTML and JS encryption
- Web access control lists
- Ingress-NGINX plugin
- Kong Gateway plugin
Use cases
- Shielding public web applications
- Throttling abusive HTTP traffic
- Blocking automated bot traffic
- Password-gated visitor access
- Kubernetes ingress protection