diff --git a/README.md b/README.md index 65987eb..f44d166 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,34 @@ +
+
+
- 🏠Home | - 📖Documentation | - 🔍Live Demo | +
+ 🏠 Website | + 📖 Docs | + 🔍 Live Demo | + 🙋♂️ Discord | 中文版
- +## 👋 INTRODUCTION -# Screenshots +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
+#### 💡 How It Works
-
+
-SafeLine is developed based on nginx, it serves as a reverse proxy middleware to detect and cleans web attacks, its core capabilities include:
+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 an 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
@@ -37,107 +36,93 @@ SafeLine is developed based on nginx, it serves as a reverse proxy middleware to
- IP-based rate limiting
- Web Access Control List
-# Installation
+#### ⚡️ Screenshots
-**中国大陆用户安装国际版可能会导致无法连接云服务,请查看** [中文版安装文档](https://docs.waf-ce.chaitin.cn/zh/%E4%B8%8A%E6%89%8B%E6%8C%87%E5%8D%97/%E5%AE%89%E8%A3%85%E9%9B%B7%E6%B1%A0)
+|
|
|
+| ------------------------------------------------- | ------------------------------------------------- |
+|
|
|
-## Automatic Deploy
+Get [Live Demo](https://demo.waf.chaitin.com:9443/)
-> 👍Recommended
+## 🔥 FEATURES
-Use the following command to start the automated installation of SafeLine. (This process requires root privileges)
+List of the main features as follows:
-```bash
-bash -c "$(curl -fsSLk https://waf.chaitin.com/release/latest/setup.sh)"
-```
+- **`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.
+- **`Captcha Challenge`**
+ - CAPTCHA challenges to protect your website from `bot attacks`, humen 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.
-After the command is executed, it means the installation is successfully. Please go to "Use Web UI" directly.
+#### 🧩 Showcases
+
+| | Legitimate User | Malicious User |
+| ----------------------------- | --------------------------------------------------- | ---------------------------------------------------------------- |
+| **`Block Web Attacks`** |
|
|
+| **`Rate Limiting`** |
|
|
+| **`Captcha Challenge`** |
|
|
+| **`Auth Challenge`** |
|
|
+| **`HTML Dynamic Protection`** |
|
|
+| **`JS Dynamic Protection`** |
|
|
+
+## 🚀 Quickstart
+
+> [!WARNING]
+> 中国大陆用户安装国际版可能会导致无法连接云服务,请查看 [中文版安装文档](https://docs.waf-ce.chaitin.cn/zh/%E4%B8%8A%E6%89%8B%E6%8C%87%E5%8D%97/%E5%AE%89%E8%A3%85%E9%9B%B7%E6%B1%A0)
+
+#### 📦 Installing
+
+Information on how to install SafeLine can be found in the [Install Guide](https://docs.waf.chaitin.com/en/tutorials/install)
+
+#### ⚙️ Protecting Web Apps
+
+to see [Configuration](https://docs.waf.chaitin.com/en/tutorials/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% |
-## Mannually Deploy
+#### Is SafeLine Production-Ready?
-to see [Documentation](https://docs.waf.chaitin.com/en/tutorials/install)
+Yes, SafeLine is production-ready.
-# Usage
+- Over 180,000 installations worldwide
+- Protecting over 1,000,000 Websites
+- Handling over 30,000,000,000 HTTP Requests Daily
-## Login
+#### 🙋♂️ Community
-Open the web console page `https://
+- channel [#feedback](https://discord.com/channels/1243085666485534830/1243120292822253598): for new features discussion.
+- channel [#FAQ](https://discord.com/channels/1243085666485534830/1263761679619981413): for FAQ.
+- channel [#general](https://discord.com/channels/1243085666485534830/1243115843919806486): for any other questions.
-Execute the following command to get administrator account
+Several contact options exist for our community, the primary one being Discord. These are in addition to GitHub issues for creating a new issue.
-```bash
-docker exec safeline-mgt /app/mgt-cli reset-admin --once
-```
-
-After the command is successfully executed, you will see the following content
-
-> Please must remember this content
-
-```text
-[SafeLine] Initial username:admin
-[SafeLine] Initial password:**********
-[SafeLine] Done
-```
-
-Enter the password in the previous step and you will successfully logged into SafeLine.
-
-## Protecting a website
-
-Log into the SafeLine Web Admin Console, go to the "Site" -> "Website" page and click the "Add Site" button in the upper right corner.
-
-
-
-In the next dialog box, enter the information to the original website.
-
-- **Domain**: domain name of your original website, or hostname, or ip address, for example: `www.chaitin.com`
-- **Port**: port that SafeLine will listen, such as 80 or 443. (for `https` websites, please check the `SSL` option)
-- **Upstream**: real address of your original website, through which SafeLine will forward traffic to it
-
-After completing the above settings, please resolve the domain name you just entered to the IP address of the server where SafeLine is located.
-
-
-
-Then you can access the website protected by the SafeLine through the domain name like this.
-
-
-
-## Try to attack your website
-
-Now, your website is protected by SafeLine, let’s try tp attack it and see what happens.
-
-If https://chaitin.com is a website protected by SafeLine, here are some test cases for common attacks:
-
-- SQL Injection: `https://chaitin.com/?id=1+and+1=2+union+select+1`
-- XSS: `https://chaitin.com/?id=
-
-Check the web console of SafeLine to see the attack list
-
-
-
-To view the specific details of the attack, click "detail"
-
-
-
-## Star History
-
-
- - Automaton Generator | - Lua Plugin | - T1K Protocol | - WAF Test Tool +
+ +#### 💪 PRO Edition + +Coming soon! + +#### 📝 License + +See [LICENSE](/LICENSE.md) for details. diff --git a/images/add-site-1.png b/images/add-site-1.png deleted file mode 100644 index f5e4a98..0000000 Binary files a/images/add-site-1.png and /dev/null differ diff --git a/images/add-site-2.png b/images/add-site-2.png deleted file mode 100644 index 8d07db5..0000000 Binary files a/images/add-site-2.png and /dev/null differ diff --git a/images/auth-1.gif b/images/auth-1.gif new file mode 100644 index 0000000..340abde Binary files /dev/null and b/images/auth-1.gif differ diff --git a/images/auth-2.gif b/images/auth-2.gif new file mode 100644 index 0000000..ff484ad Binary files /dev/null and b/images/auth-2.gif differ diff --git a/images/banner.png b/images/banner.png new file mode 100644 index 0000000..ffe725e Binary files /dev/null and b/images/banner.png differ diff --git a/images/blocked-for-access-too-fast.png b/images/blocked-for-access-too-fast.png new file mode 100644 index 0000000..83bfdf6 Binary files /dev/null and b/images/blocked-for-access-too-fast.png differ diff --git a/images/blocked-for-attack-detected.png b/images/blocked-for-attack-detected.png new file mode 100644 index 0000000..b3e9786 Binary files /dev/null and b/images/blocked-for-attack-detected.png differ diff --git a/images/captcha-1.gif b/images/captcha-1.gif new file mode 100644 index 0000000..8e75e36 Binary files /dev/null and b/images/captcha-1.gif differ diff --git a/images/captcha-2.gif b/images/captcha-2.gif new file mode 100644 index 0000000..f693b76 Binary files /dev/null and b/images/captcha-2.gif differ diff --git a/images/dynamic-html-1.png b/images/dynamic-html-1.png new file mode 100644 index 0000000..ef010c9 Binary files /dev/null and b/images/dynamic-html-1.png differ diff --git a/images/dynamic-html-2.png b/images/dynamic-html-2.png new file mode 100644 index 0000000..7dcd64c Binary files /dev/null and b/images/dynamic-html-2.png differ diff --git a/images/dynamic-js-1.png b/images/dynamic-js-1.png new file mode 100644 index 0000000..a5510ee Binary files /dev/null and b/images/dynamic-js-1.png differ diff --git a/images/dynamic-js-2.png b/images/dynamic-js-2.png new file mode 100644 index 0000000..ab207f0 Binary files /dev/null and b/images/dynamic-js-2.png differ diff --git a/images/how-it-works.png b/images/how-it-works.png new file mode 100644 index 0000000..e171e51 Binary files /dev/null and b/images/how-it-works.png differ diff --git a/images/log-detail.png b/images/log-detail.png deleted file mode 100644 index a57e47a..0000000 Binary files a/images/log-detail.png and /dev/null differ diff --git a/images/log-list.png b/images/log-list.png deleted file mode 100644 index 2b23f8f..0000000 Binary files a/images/log-list.png and /dev/null differ diff --git a/images/login.png b/images/login.png deleted file mode 100644 index 1a96214..0000000 Binary files a/images/login.png and /dev/null differ diff --git a/images/403.svg b/images/logo.svg similarity index 100% rename from images/403.svg rename to images/logo.svg diff --git a/images/safeline-as-proxy-2.png b/images/safeline-as-proxy-2.png deleted file mode 100644 index dabb5f1..0000000 Binary files a/images/safeline-as-proxy-2.png and /dev/null differ diff --git a/images/safeline-as-proxy.png b/images/safeline-as-proxy.png deleted file mode 100644 index 67ab086..0000000 Binary files a/images/safeline-as-proxy.png and /dev/null differ diff --git a/images/safeline_en.png b/images/safeline_en.png deleted file mode 100644 index 6efff5b..0000000 Binary files a/images/safeline_en.png and /dev/null differ diff --git a/images/screenshot-1.png b/images/screenshot-1.png new file mode 100644 index 0000000..f94671d Binary files /dev/null and b/images/screenshot-1.png differ diff --git a/images/screenshot-2.png b/images/screenshot-2.png new file mode 100644 index 0000000..9f8554f Binary files /dev/null and b/images/screenshot-2.png differ diff --git a/images/screenshot-3.png b/images/screenshot-3.png new file mode 100644 index 0000000..e03134b Binary files /dev/null and b/images/screenshot-3.png differ diff --git a/images/screenshot-4.png b/images/screenshot-4.png new file mode 100644 index 0000000..1f3ef2e Binary files /dev/null and b/images/screenshot-4.png differ diff --git a/images/skeleton.png b/images/skeleton.png new file mode 100644 index 0000000..dcdd69a Binary files /dev/null and b/images/skeleton.png differ diff --git a/images/wechat-230825.png b/images/wechat.png similarity index 100% rename from images/wechat-230825.png rename to images/wechat.png