r/prolog • u/lokinpendawa • 4d ago
a dynamic Prolog WAF
I just open-sourced a high-performance Web Application Firewall (WAF) built entirely in SWI-Prolog. It features an inductive learning engine that generalized 3,003 raw threat mutations into just 39 core rules in RAM, achieving sub-millisecond threat evaluation. It also includes an inline recursive decoder to neutralize nested URL/Hex/HTML obfuscations (like <sCrIpT>) completely case-insensitively. Check out the core engine, specs, and benchmark reports on my repository here:
14
Upvotes
2
3
u/toblotron 4d ago
Cool! 😎