As I explicitly stated in my previous reply, the number of attacks blocked does NOT prove or disprove that the WAF is working. Even though you are saying you don't want to use it as a KPI, what you want to use it for is the very definition of a KPI.
Again: any attack detected will be blocked. However, you do not know how many attacks are launched against your site, nor do you have any control over them. Therefore reporting just the number of blocked requests (attacks stopped) tells you nothing at all.
If one month you have 100,000 blocked requests and the next month you have 0 does it mean that the WAF stopped working? It's actually impossible to tell! In most likelihood one month you were under attack / being probed by an attacker and the next month nobody attacked or tried to probe your site. Or they kept on doing that from the same IP addresses which were already blocked, thereby extending the time they are blocked. Or your host noticed a pattern of malicious requests and blocks them at the web host level. Or you are using a CDN in front of your site which is now blocking these malicious requests.
That's what I am saying all along. The number of blocked requests does not tell you ANYTHING.
If you really want to measure that you can of course look at the number of records in the #__admintools_exceptions table which records the blocked requests. Do note that by default the access from blocked IPs will NOT be recorded. You can configure that in the Configure WAF page. However, spamming your database table with possibly hundreds of thousands of blocked requests just to be able to report a high number at the expense of site performance sounds a lot like shooting your feet.
Yes, I am aware that other WAFs report the number of blocked requests (and we also do in the Admin Tools Control Panel page) but it's NOT a metric that tells you anything useful. Zero blocked requests does NOT necessarily mean your WAF is not working.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!