Posts

Showing posts from March, 2026

Creating a Transformer-Based Web Application Firewall

Image
In this blog, we will build a Transformer-based Web Application Firewall from scratch using Docker, Nginx, FastAPI, and HuggingFace. Firewalls are the network security devices that monitor and control the outgoing and ingoing networks. They are used often in the cybersecurity tasks to block, allow or restrict the access of traffic. Think of it as a security guard standing at the main gate of your society, he takes care of who are entering the colony. Interesting, right? In this post, I want to share my experience of creating a web application firewall. Cyberattacks are so unpredictable, and hackers are highly adaptive with the new security protocols. We need a firewall which is as smart as the hackers. Something that can predict the next move and block it. And in today's world, whenever we think of predictions, the thing that comes in our mind is - machine learning. So, we are now creating a transformer-based firewall for web application. But why transformers? Simple, they generali...