Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

waf-block-bad-behaving doens't remove IP from Auto Block Set #4

Open
MattSeoFr opened this issue Mar 17, 2016 · 1 comment
Open

waf-block-bad-behaving doens't remove IP from Auto Block Set #4

MattSeoFr opened this issue Mar 17, 2016 · 1 comment

Comments

@MattSeoFr
Copy link

Hello, I did install waf-block-bad-behaving, but it occured that blocked IP were never removed from Auto Block Set. After checking parser.py, I couldn't find in the code where they were removed from this set, and I did fix this issue by replacing:

if total_diff_min > (BLACKLIST_BLOCK_PERIOD):
print "[merge_current_blocked_requesters] \t\tExpired BLOCK %s rule"%k
outstanding_requesters['block'][k] = v

With :

if total_diff_min > (BLACKLIST_BLOCK_PERIOD):
print "[merge_current_blocked_requesters] \t\tExpired BLOCK %s rule"%k
else:
print "[merge_current_blocked_requesters] \t\tKeeping data of BLOCK %s rule"%k
outstanding_requesters['block'][k] = v

Regards

@ssoooo
Copy link

ssoooo commented Oct 4, 2019

thanks bro.
I didn't see this issues...
just i did fix like you myself..
please please update this problem !!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants