OpenSource-Hub
S

SafeLine

21.2k stars·System Optimization·SHA-256 checksum verified

SafeLine is a self-hosted Web Application Firewall (WAF) that protects your web apps from attacks like SQL injection, XSS, and bots.

Smart Download

Visit Project Homepage

No installer available yet — head to the source repository

Self-hosted WAF with high accuracy, low false positives, and built-in bot defense.

Core Features

  • Block common web attacks (SQLi, XSS, command injection, etc.)
  • IP-based rate limiting to prevent brute force and DDoS
  • Anti-bot challenges (CAPTCHA) to distinguish humans
  • Authentication challenges (password gate) for sensitive pages
  • Dynamic encryption of HTML and JavaScript to prevent tampering

What It Can't Do

  • For users in mainland China, use the Chinese version to avoid cloud service connectivity issues. Always change the default admin password after first login.

Use Cases

  • Small to medium websites/APIs needing low-cost security
  • Compliance scenarios requiring on-premises, data-sovereign WAF
  • Protecting CMS like WordPress, Joomla from known exploits
  • High-traffic sites needing anti-scraping and rate limiting

Detailed Introduction

SafeLine is a self-hosted, open-source Web Application Firewall (WAF) designed to shield web applications from a wide range of attacks. It acts as a reverse proxy, filtering and monitoring HTTP traffic to block malicious requests before they reach your server. Key capabilities include defense against SQL injection, XSS, code injection, command injection, path traversal, CSRF, SSRF, and more. It also offers rate limiting to prevent brute force and DoS attacks, anti-bot challenges to distinguish humans from bots, authentication challenges for password-protected access, and dynamic encryption of HTML and JavaScript code to thwart tampering. With over 180,000 installations globally, SafeLine is production-ready and boasts a detection accuracy of 99.45% with a false positive rate of only 0.07%, significantly outperforming ModSecurity and CloudFlare free tier.

Tags

WAFWeb SecurityFirewallSelf-hostedOpen Source

Getting Started

1

Download installer

Click the button above to download the installer for your system

2

Install the software

Double-click the downloaded installer and follow the prompts

3

Step 1: Visit the official docs and choose your installation method (Docker is recommended)

4

Step 2: Run the install command, then access the admin console at https://your-server:9443

5

Step 3: Add a web application by providing its domain/IP and port

Install Guide
  1. Step 1: Visit the official docs and choose your installation method (Docker is recommended)
  2. Step 2: Run the install command, then access the admin console at https://your-server:9443
  3. Step 3: Add a web application by providing its domain/IP and port
File Integrity

Checksum not available

This project has not published a SHA-256 checksum on its GitHub Release page

SHA256 Checksum

No checksum available

Download directly from GitHub Releases and verify file integrity yourself

All SHA-256 checksums on this platform are extracted from the project's official GitHub Release page, without any modification. You can independently verify them on the GitHub Releases page.

Open Source Transparency

View GitHub Source
Environment Guide

Uninstall Info

Stop and remove containers and volumes: `docker compose down -v` (this deletes all configs and logs; backup first).

No Extra Dependencies

Ready to use after download. No additional runtime required.

Project Info
LicenseGPL-3.0
Last Updated2026-05-13 12:53:59
GitHub RepositoryOfficial Website

Similar Projects