serve as a reverse proxy to protect your web services from attacks and exploits.
Find a file
2024-03-13 17:38:46 +08:00
.github/ISSUE_TEMPLATE Update 2bug-report.yaml 2023-10-27 15:15:45 +08:00
backend feat: update issue api 2023-12-14 10:56:49 +08:00
blazehttp@23e8b59cd2 feat: update blazehttp 2023-11-21 12:16:56 +08:00
blockpage feat: add 4.2.0 version doc 2024-01-19 17:59:54 +08:00
documents fix: changelog 2024-03-09 12:14:26 +08:00
lua-resty-t1k@6446166301 加上了几个子模块 2023-06-26 22:49:23 +08:00
plugins@209e7c0e00 加上了几个子模块 2023-06-26 22:49:23 +08:00
release feat: make default use the huawei cloud 2024-03-11 11:37:41 +08:00
website feat: 专业版购买 2024-02-28 21:27:06 +08:00
yanshi add yanshi 2023-07-20 15:19:03 +08:00
.dockerignore feat: add dockerfile for whole site 2023-11-04 18:17:11 +08:00
.gitignore feat: change release log 2023-12-28 15:36:15 +08:00
.gitmodules add about us link 2023-07-20 15:15:47 +08:00
CHANGELOG.md feat: release 4.4.2 2024-03-09 11:14:40 +08:00
Dockerfile feat: change release log 2023-12-28 15:36:15 +08:00
FAQ.md doc: update the container name in doc 2024-01-11 11:16:56 +08:00
LICENSE.md feat: update license 2024-03-13 17:38:46 +08:00
README.md Update README.md 2024-01-04 16:17:48 +08:00
README_EN.md feat: use github as default assets resource 2023-12-19 12:23:34 +08:00

SafeLine Community Edition

Keep hackers at bay


Official Website

English | 中文文档

A simple and easy to use WAF tool. Built on Chaitin Technology's ace 🤖Intelligent Semantic Analysis algorithm🤖, designed for the community.

Demo

🔥🔥🔥 Online Demo: https://demo.waf-ce.chaitin.cn:9443/

There is a simple http server, listened on http://127.0.0.1:8889, can be used as for testing.

🚀 Installation

1. Make sure Docker and Compose V2 are installed correctly on the machine

docker info # >= 20.10.6
docker compose version # >= 2.0.0

2. Setup and deploy

mkdir -p safeline && cd safeline
# setup
curl -kfLsS https://waf-ce.chaitin.cn/release/latest/setup.sh | bash

# launch
sudo docker compose up -d

Upgrade

WARN: SafeLine will be restarted and your traffic will be unavailable for a short period of time. You may need to choose a proper time for upgration.

curl -kfLsS https://waf-ce.chaitin.cn/release/latest/upgrade.sh | bash

# delete the old used image layers if necessary.
docker rmi $(docker images | grep "safeline" | grep "none" | awk '{print $3}')

🕹️ Quick Start

1. Login

Open admin page https://<waf-ip>:9443 and scan qrcode with any authenticator Apps that support TOTP, enter the code to login.

safeline_login.gif

2. Create website

safeline_website.gif

💡 TIPS: After creating websiteexecute curl -H "Host: <Domain>" http://<WAF IP>:<Port> to check if you can get correct response from web server.

3. Deploy your website to SafeLine

  • If your website is hosted by DNS, just modify your DNS record to WAF
  • If your website is behind any reverse-proxy like nginx, you can modify your nginx conf and set upstream to WAF

4. Protected!👌

Try these:

  • http://<IP or Domain>:<Port>/webshell.php
  • http://<IP or Domain>:<Port>/?id=1%20AND%201=1
  • http://<IP or Domain>:<Port>/?a=<script>alert(1)</script>

📖 FAQ

Please refer to our FAQ first if you have any questions.

For examples:

🏘️ Contact Us

  1. You can make bug feedback and feature suggestions directly through GitHub Issues.
  2. By scanning the QR code below (use wechat or qq), you can join the discussion group of SafeLine users for detailed discussions.

CTStack

SafeLine has already joined CTStack community.

Star History

Star History Chart