SafeLine README

The project's README from github.com/chaitin/SafeLine. As one markdown file: README.md.

SafeLine - Make your web apps secure

🏠 Website   |   📖 Docs   |   🔍 Live Demo   |   🙋‍♂️ Discord   |   中文版

🏆 Achievements

chaitin/SafeLine — #1 GitHub Trending Repository chaitin/SafeLine — #1 Go Repository of the Day

chaitin/SafeLine — #1 Go Repository of the Week chaitin/SafeLine — #9 Go Repository of the Month

👋 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:

⚡️ Screenshots

Get Live Demo

🔥 FEATURES

List of the main features as follows:

🧩 Showcases

Legitimate User Malicious User
Block Web Attacks
Rate Limiting
Anti-Bot Challenge
Auth Challenge
HTML Dynamic Protection
JS Dynamic Protection

🚀 Quickstart

[!WARNING] 中国大陆用户安装国际版可能会导致无法连接云服务,请查看 中文版安装文档

📦 Installing

Information on how to install SafeLine can be found in the Install Guide

⚙️ Protecting Web Apps

to see Configuration

📋 More Informations

Effect Evaluation

Metric ModSecurity, Level 1 CloudFlare, Free SafeLine, Balance SafeLine, Strict
Total Samples 33669 33669 33669 33669
Detection 69.74% 10.70% 71.65% 76.17%
False Positive 17.58% 0.07% 0.07% 0.22%
Accuracy 82.20% 98.40% 99.45% 99.38%

Is SafeLine Production-Ready?

Yes, SafeLine is production-ready.

🌟 Community Recognition

🔌 Ecosystem Integrations

🙋‍♂️ Community

Join our Discord to get community support, the core team members are identified by the STAFF role in Discord.

Several contact options exist for our community, the primary one being Discord. These are in addition to GitHub issues for creating a new issue.

   

💪 PRO Edition

SafeLine PRO is now available! Explore plans and pricing or start a 7-day trial.

📝 License

See LICENSE for details.

SafeLine (chaitin/SafeLine)

Searching Database…

22.8K ·GitHub
这是什么?SafeLine 是一款可自行部署的 Web 应用防火墙(WAF)和反向代理,通过过滤和监控 HTTP 流量,保护你的 Web 应用免受攻击和漏洞利用。
它是跑在我的应用里面,还是挡在前面?挡在前面:它以反向代理的方式工作,客户端流量会先经过 SafeLine 再到达你的服务器,并在进入途中对恶意 HTTP/S 请求进行过滤、监控和拦截。
我需要改动自己应用的代码吗?不需要。SafeLine 就像一道隔离互联网和你的应用的盾牌,对流经的流量执行防护策略,应用本身完全不用动。
安装时有什么坑吗?中国大陆用户应按照中文版文档安装:使用国际版文档可能导致无法连接 SafeLine 的云端服务。
它运行在哪里?运行在你自己的基础设施上:它是可自行部署的软件,部署在你想保护的 Web 应用前面,并通过它自带的网页控制台进行管理。
它能拦截哪些攻击?常见的 Web 攻击面都能覆盖:SQL 注入、XSS、代码注入和操作系统命令注入、CRLF、LDAP 和 XPath 注入、RCE、XXE、SSRF、路径穿越、后门,另外还能防暴力破解、HTTP 洪水和恶意爬虫滥用。
除了拦截攻击,它还能做什么?针对 DoS、暴力破解和流量激增做限速,通过人机验证放行真人、挡住爬虫,提供一道密码验证关卡来筛选访问者,还有动态防护,每次访问都会对你页面的 HTML 和 JS 重新加密。
它的检测能力和 ModSecurity 或 Cloudflare 比怎么样?在 SafeLine 的 33,669 个样本的基准测试中,Balance(平衡)模式检出 71.65% 的攻击,误报率 0.07%(准确率 99.45%),Strict(严格)模式检出 76.17%;而 ModSecurity Level 1 检出 69.74%,误报率高达 17.58%,Cloudflare Free 只检出 10.70%。
它经受过实战考验吗?是的——README 称其已可用于生产环境,全球安装量超过 40 万,保护超过 100 万个网站,每天处理超过 300 亿次 HTTP 请求。
What are similar projects?crowdsec, bunkerweb, anubis, DVWA, hacker101, xray, tyk, goproxy
Creator
chaitin
Size
78.3 MB
Stars
22.8K
Age
3y
Commits · 90 Days