# SafeLine

> SafeLine is a self-hosted WAF(Web Application Firewall) / reverse proxy to protect your web apps from attacks and exploits

- Type: agent or tool
- Field: Security
- Repository: https://github.com/chaitin/SafeLine
- GitHub stars: 23430
- Licence: GPL-3.0
- Language: Go
- Last push: 2026-11-23
- Page: https://imutechz.in/agents/safeline

## What it is
SafeLine is a self-hosted web application firewall and reverse proxy that sits in front of your web apps to filter, monitor and block malicious HTTP/S traffic. It is aimed at teams who want to protect their own web applications from attacks and exploits. It works as a reverse proxy intermediary between clients and the server, applying policies to decide which traffic is malicious and which is safe.

## Features
- Blocks web attacks such as SQL injection, XSS, code injection, XXE, SSRF and path traversal
- IP-based rate limiting against DoS, bruteforce and traffic surges
- Anti-bot challenges that allow human users and block crawlers and bots
- Authentication challenge requiring visitors to enter a password
- Dynamic protection that encrypts HTML and JS code on each visit
- Web access control list

## Best for
- Protecting self-hosted web apps from common web attacks
- Throttling abusive or excessive traffic to a site
- Blocking bots and crawlers while letting human users through
- Adding a password gate in front of a web application

## Pros
- Self-hosted, so you run it on your own infrastructure
- Acts as a reverse proxy placed in front of web apps
- Covers a broad list of attack types plus rate limiting and bot defense
- Includes a live demo to try before deploying

## Cons
- Must be deployed in front of the web application as a reverse proxy
- Protection depends on policies you configure to separate malicious from safe traffic

Tags: waf, web-security, reverse-proxy, self-hosted, rate-limiting, anti-bot, sql-injection, web-application-firewall
