DEV Community

Lulu
Lulu

Posted on

4 1 1 1 1

The Must-Have Free WAF for Web Application Security: SafeLine

Web Application Firewall (WAF) is a security tool that operates at the application layer, designed to protect web requests and responses from common attacks. A good WAF can shield your web apps from threats like SQL injection, cross-site scripting (XSS), and other vulnerabilities. It can also monitor and block traffic that might lead to Denial of Service (DoS) attacks.

SafeLine: A Free and Robust WAF Solution

Today, let’s dive into SafeLine, a powerful and free open-source WAF. It’s built on Nginx’s highly stable engine, offering excellent performance and reliability for handling web traffic security.

Installation

You can easily install SafeLine using a command-line script:

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

Access and Setup

After installation, make sure to open the necessary firewall port to access the WAF dashboard on port 9443. Use the following commands:

# Open port 9443 for SafeLine
firewall-cmd --zone=public --add-port=9443/tcp --permanent   
# Apply the changes immediately
firewall-cmd --reload   
Enter fullscreen mode Exit fullscreen mode

Once the firewall is configured, you can access SafeLine at:

https://<your-server-ip>:9443/
Enter fullscreen mode Exit fullscreen mode

Just bind your server's IP address, and you’re good to go!

Image description

Website: https://waf.chaitin.com/
GitHub: https://github.com/chaitin/SafeLine
Discord: https://discord.gg/3aRJ4qfwjA

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay