# SafeLine

SafeLine is a self-hosted web application firewall (WAF) that protects your web apps from attacks and exploits.

Canonical page: https://ourlocalhost.com/app/7877/safeline

## Description

SafeLine is a self-hosted web application firewall (WAF) that protects your web apps from attacks and exploits. It filters and monitors HTTP traffic between your applications and the internet, blocking threats such as SQL injection, XSS, code injection, command injection, RCE, XXE, SSRF, path traversal, and brute-force attacks using a next-generation semantic analysis engine. It suits self-hosters and organisations that want Cloudflare-style WAF protection on their own infrastructure, with a free plan and easy setup.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Health score

76/100 (Good), based on 5 of 5 factors.
- Maintained: 87 (last commit 42 days ago)
- Popular: 87 (23,531 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Light to run: 70 (1 GB minimum RAM)
- Security check: 94 (no serious findings, 1 minor, CI, tests)

## Links

- Official website: https://ly.cyberserval.tech/d4HFBvC
- GitHub: https://github.com/chaitin/SafeLine
- Documentation: https://docs.waf.chaitin.com/

## Common questions

### Can SafeLine run behind or alongside an existing reverse proxy like Nginx or Traefik?

SafeLine itself is a Nginx-based reverse proxy, so you typically point it at your backend apps and place it in front of them rather than behind another proxy. There's also an ingress-nginx integration documented for use in Kubernetes environments.

### Where do I change the ports SafeLine listens on after installation?

On a default install, SafeLine keeps its Docker Compose file (which controls port mappings) in /data/safeline — edit the file there to adjust which ports the firewall listens on.

### The management/dashboard port seems unreachable from other machines — why?

The web management port listens only on loopback (localhost) by default. To access the dashboard remotely you need to change the publish address setting in the configuration.

### Is SafeLine free, and does the Community Edition have telemetry or per-GB pricing?

The Docker-based Community Edition is completely free, with no call-home telemetry and no per-GB pricing.

### How does SafeLine handle bots and brute-force/DoS traffic?

It offers multi-layer bot protection including CAPTCHA challenges, dynamic protection, and anti-replay protection, plus IP-based rate limiting to throttle DoS, brute-force, and traffic surges.

## Alternatives

- BunkerWeb: BunkerWeb is a self-hosted, open-source web application firewall and NGINX-based web server that protects services with secure-by-default s…
- Cloudflare: Protects websites with front-end proxy, dynamic DNS, CDN, and firewall; blocks DDoS and targeted attacks, optimizes traffic, and analyzes t…
- Corvus: Self-hosted reverse proxy and web application firewall with a web console; it provides domain forwarding, free SSL, live traffic monitoring…
- UUSEC WAF: UUSEC WAF is a free, open-source web application and API firewall that protects websites against attacks including zero-day threats using A…

---
Source: Our Local Host (https://ourlocalhost.com/app/7877/safeline), the self-hosted and open-source app directory.
