chaitin /SafeLine
SafeLine is a self-hosted WAF(Web Application Firewall) / reverse proxy to protect your web apps from attacks and exploits.
★ 23,293⑂ 1,610👁 108⑃ 211● 1,068▤ 127
+7
Daily
23,293
stars
1,610
forks
108
watchers
211
prs
1,068
issues
127
releases
README
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 |
| ----------------Top issues
#563[Suggestion] DNS-01 challenge in 'Get free cert' / 申请泛域名免费证书 / 用 dns 验证方式申请免费证书42 comments · 2024-01-02#953[suggestion] Is it possible to implement interception based on behavioral characteristics?11 comments · 2024-06-26#1266[Bug] Spontaneous shutdown of the anti-bot protection6 comments · 2026-02-05#1235[Suggestion] 能不能开个个人付费版6 comments · 2025-10-29#1227[Suggestion] 社区版功能建议5 comments · 2025-09-16#1356[Bug] SafeLine reports almost all requests as 502 when using Traefik plugin4 comments · 2026-11-09#1355[Bug] [Security] Complete WAF detection bypass via body size limit (all modules affected)4 comments · 2026-11-09#1239[Bug] Blank Screen with HTML Dynamic Encryption enabled from Firefox/Opera3 comments · 2025-11-06
Discussions
#1319Bot Protect Break Phone Apps1 comments · 2026-09-04#1299雷池社区版怎么安装和排查控制台访问问题?0 comments · 2026-06-29#1243所以我在国外进不了IT天空就是这个的原因?1 comments · 2025-11-25#1238How to configure everything without UI0 comments · 2025-11-06#1218Possible to create www to non-www redirect rule?1 comments · 2025-08-23#1209How to install Safeline without Docker Compose to run at network edge and proxy to internal services?0 comments · 2025-07-27#1186App limit1 comments · 2025-05-14#1178How to bind the admin panel to the internal IP?0 comments · 2025-04-06
Latest release
SafeLine-CE 9.4.4 v9.4.4 2026-11-11Improved - Added a Beta upgrade channel: you can opt in from the console to try new features early, and upgrade smoothly to the stable release once it’s published - [Lite/Pro] Custom rules now support “Belongs to ASN / Does Not Belong to ASN” match operators. You can block attack sources by the ASN of the source IP without manually maintaining large IP ranges, and hit rules show ASN info in the logs. - [Pro] Domain-based upstreams now support dynamic resolution: when the DNS records of an upstream domain change, the resolved IP is updated automatically, so failover no longer requires a manu