Security Cipher
Home Blog About Us
Resources โ–ผ
โœ… Security Checklists Hub ๐Ÿ—บ๏ธ Penetration Testing Roadmap ๐ŸŒ Web Application Security Checklist ๐Ÿค– OWASP Top 10 for LLM Applications ๐Ÿง  LLM AI Security Checklist ๐Ÿ› ๏ธ Security Tools ๐ŸŽฏ Penetration Testing Tricks ๐Ÿ“„ Secure Code Explain ๐Ÿ“– Vulnerability Explain โ˜๏ธ AWS Cloud Security Checklist
My Resume
Contact UsContact
New Security Checklists Hub 1,760+ controls across 18 categories Open checklists โ†’
← Security Tools View on GitHub

SafeLine

Self-hosted open-source WAF and reverse proxy for protecting web apps.

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:

  • Defenses for web attacks
  • Proactive bot abused defense
  • HTML & JS code encryption
  • IP-based rate limiting
  • Web Access Control List

โšก๏ธ Screenshots

Get Live Demo

๐Ÿ”ฅ FEATURES

List of the main features as follows:

  • 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.
  • Anti-Bot Challenge
    • Anti-Bot challenges to protect your website from bot attacks, human 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.

๐Ÿงฉ Showcases

Legitimate UserMalicious 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

MetricModSecurity, Level 1CloudFlare, FreeSafeLine, BalanceSafeLine, Strict
Total Samples33669336693366933669
Detection69.74%10.70%71.65%76.17%
False Positive17.58%0.07%0.07%0.22%
Accuracy82.20%98.40%99.45%99.38%

Is SafeLine Production-Ready?

Yes, SafeLine is production-ready.

  • Over 400,000 installations worldwide
  • Protecting over 1,000,000 Websites
  • Handling over 30,000,000,000 HTTP Requests Daily

๐ŸŒŸ Community Recognition

  • Rated 10.0/10 by HelloGitHub
  • Listed in awesome-selfhosted
  • Featured on Product Hunt
  • Recognized by Cyber Press as the most popular open-source web firewall on GitHub

๐Ÿ”Œ Ecosystem Integrations

  • SafeLine MCP Server for AI-assisted management and control
  • Ingress-NGINX plugin for protecting Kubernetes ingress traffic
  • Kong Gateway plugin for protecting APIs and services

๐Ÿ™‹โ€โ™‚๏ธ Community

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

  • channel #feedback: for new features discussion.
  • channel #FAQ: for FAQ.
  • channel #general: for any other questions.

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.

Press Escape to close the search panel.

Donate

Buy me a Coffee

Penetration Testing Services - Fiverr

Buy me a Coffee

Penetration Testing Services

penetration Testing Services

Web Application Security Quiz

Web Application Security Quiz

Daily Bug Bounty Writeups - Twitter

Daily Bug Bounty Writeups

Download our Latest Android Application

Guide for Penetration Testing

Daily Bug Bounty Writeups - Telegram

Daily Bug Bounty Writeups

Author

Piyush
Senior Product Security Engineer

Ethical Hacker || Penetration Tester || Gamer || Blogger || Application Security Engineer

READ ARTICLE

Donate

Buy me a Coffee

Recent Posts

  • DevSecOps From Laptop to Production: A Practical Security Pipeline Guide
    DevSecOps From Laptop to Production: A Practical Security Pipeline Guide
    August 27, 2026/
    0 Comments
  • The CVE Flood Is a Lie: How to Hunt When AI Dumps 36% More Bugs But Exploitation Only Grows 10%
    The CVE Flood Is a Lie: How to Hunt When AI Dumps 36% More Bugs But Exploitation Only Grows 10%
    August 25, 2026/
    0 Comments
  • RAG Poisoning in 2026: A Practical Playbook for Hacking Answers Through Your Knowledge Base
    RAG Poisoning in 2026: A Practical Playbook for Hacking Answers Through Your Knowledge Base
    August 19, 2026/
    0 Comments

Follow Us

SecurityCipher

Practical security guides, vulnerability deep-dives, and hands-on resources for bug bounty hunters and penetration testers.

Useful Links

  • Security Checklists
  • Cybersecurity Jobs
  • Blogs
  • About
  • Contact
ยฉ 2026 SecurityCipher. All rights reserved. Privacy Policies ยท Terms & Conditions