Boas04/Aegis ? reverse-engineered prompt

Reverse engineered prompt

Build me a small web app called Aegis that works like a smart firewall for web requests. I want it to check incoming requests in real time and block anything that looks like SQL injection, XSS, or path traversal, then save those blocked attempts into a local SQLite log. If the request looks safe, it should let it through normally.

Please make it with Python and Flask, with a simple clean HTML and CSS interface so I can see the status, recent threats, and logs. Use the provided machine learning model files if they fit, and wire everything together so the app actually runs end to end. If you need to look up current Flask or scikit learn docs online, go ahead.

I’d also like a basic dashboard page that shows how many requests were allowed or blocked, plus a page to view the logs in a simple table. Keep it lightweight and easy to run locally.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab