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
GoGPL-3.0Created 2023-04-12ly.cyberserval.tech/d4HFBvC
More from this author
Download: SafeLine-CE 9.4.4SafeLine-CE-9.4.4 ↓9.4.42026-11-11
+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

Discussions

Latest release

SafeLine-CE 9.4.4 v9.4.4 2026-11-11
Improved
- 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

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON