You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Spring Boot backend that acts as a Web Application Firewall (WAF), designed to monitor, filter, and block malicious HTTP traffic. The system protects against vulnerabilities such as SQL Injection and XSS and provides a rule-based mechanism for traffic filtering.
Features
Dynamic Route Blocking: Block or allow requests to specific routes based on database-stored rules.
Request Body Filtering: Analyze user input to detect and block SQL Injection and XSS payloads.
Comprehensive Logging: Logs every request, marking malicious requests for further analysis.
CRUD Rule Management: Add, edit, or delete filtering rules directly from the database.
Tech Stack
Language: Java
Framework: Spring Boot
Database: MySQL
Build Tool: Maven
Dependencies:
Spring Boot Starter Web
Spring Boot Starter Data JPA
Lombok
Setup and Installation
Prerequisites
Java 17 or higher
Maven 3.8+
MySQL Server
Clone the Repository
git clone https://github.com/your-username/waf-backend.git](https://github.com/NabilMouzouna/Web-App-Firewall.git
cd Web-App-Firewall
Configure the Database
Create a MySQL database:
CREATE DATABASE firewall;
Update the database credentials in src/main/resources/application.properties: