Does order of UFW rules matter?
Does the order of the rules actually matter?
Yes it does. Denies should be first in this case since they are more specific (more specific rules should go first). Example
Is there a more effective way to handle spammy requests than manually
fail2ban can scan logs, and add IPs to many types of filtering systems that match defined patterns.