A CLI and TypeScript SDK from OpenAI for scanning code for security vulnerabilities, validating findings, and generating fixes.
chaitin/SafeLine
A self-hosted web application firewall and reverse proxy that filters HTTP traffic to block attacks like SQL injection, XSS, and bot floods.
Open-source alternative to:Cloudflare WAF
AWS WAF
Imperva
- Stars
- 22,772
- Forks
- 1,552
- Open issues
- 51
- Last commit
- 21 days ago
What is it?
SafeLine is a self-hosted web application firewall (WAF) that sits between your web application and the Internet as a reverse proxy. All HTTP traffic passes through it, so malicious requests can be filtered or blocked before they reach the server.
It targets a broad set of web attacks, including SQL injection, XSS, code and OS command injection, SSRF, XXE, path traversal, and brute-force or HTTP flood attempts. Beyond attack filtering, it provides IP-based rate limiting, a web access control list, anti-bot challenges that let human visitors through while blocking crawlers, and an optional password challenge in front of a site.
SafeLine also offers dynamic protection that encrypts HTML and JavaScript on each visit, and it ships integrations for Ingress-NGINX on Kubernetes and the Kong Gateway, plus an MCP server for AI-assisted management. A commercial PRO edition is also offered.
Key features
- 01Blocks common web attacks such as SQL injection, XSS, command injection, and SSRF.
- 02Rate limiting by IP to slow down brute-force attempts and traffic surges.
- 03Anti-bot challenges that allow human visitors while blocking crawlers.
- 04Optional password challenge to gate access to a site.
- 05Dynamic encryption of HTML and JavaScript on each visit.
- 06Ingress-NGINX and Kong Gateway plugins for Kubernetes and API traffic.
Use cases
- Protecting a public-facing website or web app from common injection and XSS attacks.
- Adding rate limiting and bot defense in front of login pages or APIs.
- Securing Kubernetes ingress traffic with an existing Ingress-NGINX setup.
- Protecting APIs routed through Kong Gateway.
Topics
FAQ
- What is SafeLine?
- A self-hosted web application firewall and reverse proxy that filters HTTP traffic to block attacks like SQL injection, XSS, and bot floods. SafeLine is a self-hosted web application firewall (WAF) that sits between your web application and the Internet as a reverse proxy. All HTTP traffic passes through it, so malicious requests can be filtered or blocked before they reach the server.
- Is SafeLine free to use? What license does it have?
- SafeLine is open source under the GPL-3.0 license. Check the license terms before using it in commercial products.
- Is SafeLine still maintained?
- Actively maintained. The last commit to SafeLine was on Sep 28, 2026.
- What can I use SafeLine for?
- Protecting a public-facing website or web app from common injection and XSS attacks. Adding rate limiting and bot defense in front of login pages or APIs. Securing Kubernetes ingress traffic with an existing Ingress-NGINX setup. Protecting APIs routed through Kong Gateway.
- Where can I get SafeLine?
- The source code and installation instructions are on GitHub: https://github.com/chaitin/SafeLine
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Rust-based web application security scanner for penetration testers, with 125+ scanner modules, an AI-driven testing mode, and a companion browser extension.
A self-hosted home server gateway and manager that adds reverse proxy, SSO/2FA authentication, anti-bot and anti-DDoS protection to your apps.
Self-hosted home security camera system for Raspberry Pi with end-to-end encrypted live video, alerts, and recordings on your phone.
A self-hosted personal AI assistant that runs on your own devices and answers you through chat apps like WhatsApp, Telegram, Slack, and Discord.
Fair-code workflow automation platform for building AI agents and workflows, with a visual canvas, custom code, and 1500+ integrations.