Add guard to modsecurity_total

If ModSecurity did not pickup any triggers, the function would not find
any matches against the regex. This caused a segfault and was a stupid mistake.

Signed-off-by: Aaron Bedra <aaron@aaronbedra.com>
Adding unit tests for modsecurity_total

Signed-off-by: Aaron Bedra <aaron@aaronbedra.com>
Blacklist actors that exceed the anomaly threshold

This commit adds blacklisting on top of the blocking action when an
actor exceeds the anomaly threshold.

Signed-off-by: Aaron Bedra <aaron@aaronbedra.com>