📈 GH Trending Explorer 🎲 Surprise me

← all repos

chaitin / SafeLine

git clone https://github.com/chaitin/SafeLine.git v9.4.2 · 24d ago

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

+13
stars, 24h · #1,131
+~91
stars, 7 days · #1,431
+~390
stars, 30 days · #1,354
23k
★ total · +0% this week
1.6k
forks · 48 open issues

Star history (as recorded here)

2026-10-20 · 22,802 ★ 2026-10-22 · 22,874 ★
LanguageGo
LicenseGPL-3.0
Created2023-04-12 (3y ago)
Last pushtoday
Watchers110
OwnerOrganization

GitHub topics

Links

README excerpt
SafeLine - Make your web apps secure
 🏠 Website   |  
 📖 Docs   |  
 🔍 Live Demo   |  
 🙋‍♂️ Discord   |  
 中文版 
 🏆 Achievements 
## 👋 INTRODUCTION
SafeLine is a self-hosted **`WAF(Web Application Firewall)`** to protect your web apps from attacks and exploits.
A web application firewall helps protect web apps by filtering and monitoring HTTP traffic between a web application and the Internet. It typically protects web apps from attacks such as `SQL injection`, `XSS`, `code injection`, `os command injection`, `CRLF injection`, `ldap injection`, `xpath injection`, `RCE`, `XXE`, `SSRF`, `path traversal`, `backdoor`, `bruteforce`, `http-flood`, `bot abused`, among others.
#### 💡 How It Works
By deploying a WAF in front of a web application, a shield is placed between the web application and the Internet. While a proxy server protects a client machine’s identity by using an intermediary, a WAF is a type of reverse-proxy, protecting the server from exposure by having clients pass through the WAF before reaching the server.
A WAF protects your web apps by filtering, monitoring, and blocking any malicious HTTP/S traffic traveling to the web application, and prevents any unauthorized data from leaving the app. It does this by adhering to a set of policies that help determine what traffic is malicious and what traffic is safe. Just as a proxy server acts as an intermediary to protect the identity of a client, a WAF operates in similar fashion but acting as a reverse proxy intermediary that protects the web app server from a potentially malicious client.
its core capabilities include:
- Defenses for web attacks
- Proactive bot abused defense 
- HTML & JS code encryption
- IP-based rate limiting
- Web Access Control List
#### ⚡️ Screenshots
| | |
| ------------------------------------------------- | ------------------------------------------------- | 
| | | 
Get Live Demo
## 🔥 FEATURES
List of the main features as follows:
- **`Block Web Attacks`**
 - It defenses for all of web attacks, such as `SQL injection`, `XSS`, `code injection`, `os command injection`, `CRLF injection`, `XXE`, `SSRF`, `path traversal` and so on.
- **`Rate Limiting`**
 - Defend your web apps against `DoS attacks`, `bruteforce attempts`, `traffic surges`, and other types of abuse by throttling traffic that exceeds defined limits.
- **`Anti-Bot Challenge`**
 - Anti-Bot challenges to protect your website from `bot attacks`, human users will be allowed, crawlers and bots will be blocked.
- **`Authentication Challenge`**
 - When authentication challenge turned on, visitors need to enter the password, otherwise they will be blocked.
- **`Dynamic Protection`**
 - When dynamic protection turned on, html and js codes in your web server will be dynamically encrypted by each time you visit.
#### 🧩 Showcases
| | Legitimate User | Malicious User |
| ----------------------------- | --------------------------------------------------- | ----------------------------------------------------------------