This project was created to simulate a user with specific characteristics and which security rule from Imperva WAF will be triggered.
The idea is from Microsoft AAD Conditional Access What if and powershell WhatIf function.
Execute npm i
, ng serve
, navigate http://localhost:4200/
, and play.
Edit src/app/rules.ts
and add your rules
true & false & true & true & true | true & true & true & true & true & true & true = true
(true & false & true & true) & (true | (true & true & true & true & true)) = false
ClientIP != 62.169.201.60;109.242.233.139
allow from 109.242.233.139
true & false = false
block from out
true & true = true
ClientIP != 62.169.201.60 & ClientIP != 109.242.233.139
allow from 109.242.233.139
true & false = false
block from out
true & true = true
ClientIP == 62.169.201.60;109.242.233.139
block from these ips
false | true = true
allow from out
false | false = false
ClientIP == 62.169.201.60 | ClientIP == 109.242.233.139
block from these ips
false | true = true
allow from out
false | false = false