Skip to content

ainthacker/Web_Application_Firewall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Web Application Firewall (WAF)

A lightweight and robust Web Application Firewall (WAF) designed to protect your web applications from common attacks. Developed from scratch in just 24 hours during a Hackathon event.

image


🛡️ Features

  • SQL Injection detection and prevention
  • XSS (Cross-Site Scripting) attack detection
  • Simple DoS protection (request rate limiting)
  • Attack logging in a local database
  • User authentication and session management
  • Clean and modern user interface

⚙️ Installation

  1. Create a Python Virtual Environment
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  2. Install Required Packages
    pip install -r requirements.txt
  3. Start the Server
    python Server.py
    The server will run by default at http://localhost:5000

🗄️ Database

  • Database: waf.db (SQLite)
  • To view attack logs:
    sqlite3 waf.db
    SELECT * FROM attacks;

📁 Project Structure

├── Server.py           # Main server and application logic
├── AttackTest.py       # Attack detection and logging
├── SQLi.py             # SQL Injection detection
├── XSS.py              # XSS detection
├── DOS.py              # DoS protection
├── requirements.txt    # Python dependencies
├── Templates/          # HTML templates
└── README.md           # Project documentation

📬 Contribution & Contact

Contributions and feedback are welcome! Please open an issue or submit a pull request if you have suggestions or improvements.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published