Skip to content

SafeLine

Self-hosted web application firewall that filters attacks as a reverse proxy

Copyleft (OSI) · GPL-3.0
  • Self-hosted

Listed by , founder & editor

74

Health

Active

Overview

Stars

23,413

Last commit

33 days ago

Oct 2026

Repository age

3 years

since Apr 2023

Latest version

v9.4.7

Nov 2026

Contributors

–

7 active in 90 days

Releases

14

last 12 months

Language

Go

SafeLine is a web application firewall you host yourself. It sits in front of your web app as a reverse proxy, so every HTTP and HTTPS request passes through it before reaching your server. Traffic is checked against policies, and malicious requests are blocked.

It targets attacks such as SQL injection, XSS, code and command injection, XXE, SSRF and path traversal. Other protections include IP-based rate limiting against floods and brute force, anti-bot challenges, an authentication challenge that asks visitors for a password, and dynamic protection that encrypts HTML and JavaScript each time a page is served.

The project is written in Go, runs in Docker and is licensed under GPL-3.0. It is actively maintained, with 13 releases in the last year and the latest version at v9.4.6. It suits people who would otherwise pay for a cloud WAF service and who are willing to run the proxy on their own infrastructure.

Who it's for

Small teams hosting their own web apps

A reverse-proxy WAF protects apps without changing their code.

Skip if: You already use a managed cloud WAF that you are happy with.

Sysadmins fighting scraping and brute force

Rate limiting and anti-bot challenges can throttle abusive clients.

Skip if: You need a network-level firewall rather than HTTP filtering.

Security-minded developers

Dynamic protection and an authentication challenge add layers for sensitive pages.

Skip if: You need to avoid GPL-3.0 copyleft in a product you distribute.

The problem it solves

Web apps face injection attacks, bots and floods, and commercial WAFs are often cloud services you pay for. SafeLine lets you filter that traffic on a server you control.

Strengths

  • Blocks SQL injection, XSS, SSRF, XXE and path traversal
  • Rate limiting, anti-bot and authentication challenges included
  • Dynamic encryption of HTML and JavaScript
  • Docker deployment and Go codebase
  • Active releases: 13 in the last year

Trade-offs

  • Operates only on HTTP and HTTPS traffic
  • GPL-3.0 license has copyleft obligations
  • Adds a proxy hop in front of your app that you must operate
  • Intended for Docker-based self-hosting only

Self-host SafeLine

Self-hostable
Yes
Docker Compose
The repository ships a Compose file

Frequently asked questions

Is SafeLine free?

Yes. The source is available under GPL-3.0.

Can I self-host it?

Yes. It is designed to be self-hosted and runs with Docker.

How does it protect my app?

It works as a reverse proxy, so clients pass through it before reaching your web server.

Which attacks does it block?

Attacks such as SQL injection, XSS, command injection, XXE, SSRF and path traversal.

Similar tools in Firewalls and network security

OpenSnitch

Firewalls and network security

Interactive application firewall for Linux desktops that prompts on outbound connections

14k 691 4 months ago Dormant GPL-3.0

BunkerWeb

Firewalls and network security

NGINX-based open-source web application firewall for self-hosters and DevOps teams

11k 674 3 days ago Active AGPL-3.0

simplewall

Firewalls and network security

Windows network filter built on WFP, for advanced users who want to control app traffic

9.4k 678 today Active GPL-3.0

Rethink: DNS + Firewall + VPN

Firewalls and network security

Android app combining a per-app firewall, encrypted DNS and WireGuard routing

6k 388 3 days ago Thriving Apache-2.0

NetGuard

Firewalls and network security

No-root Android firewall that blocks Wi-Fi and mobile data per app

4k 377 4 months ago Slowing GPL-3.0

AFWall+

Firewalls and network security

iptables-based per-app firewall for rooted Android phones that blocks network access

3.5k 503 yesterday Active GPL-3.0