serve as a reverse proxy to protect your web services from attacks and exploits.
Find a file
2024-06-06 17:26:16 +08:00
.github/ISSUE_TEMPLATE Update 2bug-report.yaml 2023-10-27 15:15:45 +08:00
backend fix: add behavior source (#843) 2024-04-24 18:31:52 +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 Merge pull request #912 from ct-jaryn/main 2024-06-06 16:44:45 +08:00
images Add files via upload 2024-06-05 23:48:39 +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: 6.0.3 2024-06-06 16:42:06 +08:00
website feat: add lang select btn 2024-06-05 14:36:38 +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: 6.0.3 2024-06-06 16:42:06 +08:00
Dockerfile fix: website 2024-06-06 17:26:16 +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-06-06 16:27:01 +08:00
README_CN.md Update README_CN.md 2024-06-03 15:05:06 +08:00

SafeLine, The Best Free WAF For Webmaster


Home | Demo | Docs | Discord | 中文版

SafeLine is a simple, lightweight, locally deployable WAF, it is the best waf for webmaster.

It serves as a reverse proxy access to protect your website from network attacks that including OWASP attacks, zero-day attacks, web crawlers, vulnerability scanning, vulnerability exploit, http flood and so on.

  • Cumulative installations exceed 130,000 units
  • Protecting websites over 1,000,000
  • Processing HTTP requests over 30,000,000,000 times per day
  • Intercepting attacks over 50,000,000 times per day

Installation

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

Recommended

Use the following command to start the automated installation of SafeLine. (This process requires root privileges)

bash -c "$(curl -fsSLk https://waf.chaitin.com/release/latest/setup.sh)"

After the command is executed, it means the installation is successfully. Please go to "Use Web UI" directly.

Mannually Deploy

to see Documentation

Use Web UI

Open the web console page https://<safeline-ip>:9443/ in the browser, then you will see below.

Execute the following command to get administrator account

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

[SafeLine] Initial usernameadmin
[SafeLine] Initial password**********
[SafeLine] Done

Enter the password in the previous step and you will successfully logged into SafeLine.

Protecting a website

How SafeLine works

SafeLine is a web application firewall developed based on nginx, designed to help websites defend against network attacks.

Its principle is to act as an http/https reverse proxy, receive network traffic for the original website, then clean the malicious attack traffic and forward the safe and reliable traffic to the original website.

Proxy a website in SafeLine

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, lets 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=<img+src=x+onerror=alert()>
  • Path Traversal: https://chaitin.com/?id=../../../../etc/passwd
  • Code Injection: https://chaitin.com/?id=phpinfo();system('id')
  • XXE: https://chaitin.com/?id=<?xml+version="1.0"?><!DOCTYPE+foo+SYSTEM+"">

Replace chaitin.com in the above cases with your website domain name and try to access it.

Check the web console of SafeLine to see the attack list

To view the specific details of the attack, click "detail"

Core Capabilities

Defenses For OWASP Attacks

SafeLine use as an important tool to defense against OWASP Top 10 Attack, such as SQL injection, XSS, Insecure deserialization etc.

Defenses For 0-Day Attacks

SafeLine use intelligent rule-free detection algorithm to against 0-Day attacks with unknown attack signatures.

Proactive Bot defense

SafeLine uses advanced algorithms to send capthcha challenge for suspicious users to against automated robot attacks.

In-Browser Code Encryption

SafeLine can dynamically encrypt and obfuscate static code in the browser (such as HTML, JavaScript) to against reverse engineering.

Web Authentication

SafeLine prompting the user for authentication to web apps that lacks valid authentication credentials, Illegal users will be blocked.

Web Access Control List

SafeLine offering fine-grained control over traffic allows you to define a set of rules that determine which requests are allowed or denied.

Features

Easy To Use

Deployed by Docker, one command can complete the installation, and you can get started at 0 cost.

The security configuration is ready to use, no manual maintenance is required, and safe lying management can be achieved.

High Security Efficacy

The first intelligent semantic analysis algorithm in the industry, accurate detection, low false alarm, and difficult to bypass.

The semantic analysis algorithm has no rules, and you are no longer at a loss when facing 0-day attacks with unknown features.

High Performance

Ruleless engine, linear security detection algorithm, average request detection delay at 1 millisecond level.

Strong concurrency, single core easily detects 2000+ TPS, as long as the hardware is strong enough, there is no upper limit to the traffic scale that can be supported.

High Availability

The traffic processing engine is developed based on Nginx, and both performance and stability can be guaranteed.

Built-in complete health check mechanism, service availability is as high as 99.99%.

Star History

Star History Chart

Automaton Generator | Lua Plugin | T1K Protocol | WAF Test Tool