• Resolved Wendihihihi

    (@wendihihihi)


    Hi Erik,

    I think I’m missing something. There are 42 IPs banned in the list, but my setting are

    Automatic spammer IP Blacklist V
    Mail blocked before Ban 3
    Automatic Unban 5min

    Shouldn’t those IPs be gone after 5 minutes? Or is it possible that they get on this list in another way, and stay there?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Erik

    (@codekraft)

    hi @wendihihihi sorry I didn’t reply sooner but this year at work we are restructuring many of our sites/subsites to upgrade them to fse but these migrations never seem to end.

    Coming to what you ask, yes it is indeed so as you say and in theory you should unban (and thus remove from that list) after the time frame you set in the “Automatic Unban” field.

    One thing I can recommend is to activate (temporarily) the debug mode so that you can check just below that select when the next cron event will occur.

    define( 'CF7ANTISPAM_DEBUG', true );

    I was thinking that perhaps at this point it would be better to insert a ‘log’ section as you had asked, and that it might be better to separate the options into several tabs. what do you think?

    Thread Starter Wendihihihi

    (@wendihihihi)

    No problem, Erik, work comes first.

    I think you’re right about the cron. With the one I was using (5min) I got this

    [check_time] => 1
    [check_time_min] => 6
    [check_time_max] => 31536000
    [check_bad_ip] => 1
    [autostore_bad_ip] => 1
    [max_attempts] => 3
    [unban_after] => 
    [check_bad_words] => 1

    and after I changed it to fifteen_minutes it showed up.

    [check_time] => 1
    [check_time_min] => 6
    [check_time_max] => 31536000
    [check_bad_ip] => 1
    [autostore_bad_ip] => 1
    [max_attempts] => 3
    [unban_after] => fifteen_minutes
    [check_bad_words] => 1

    I’ll check where that 5min cron is coming from.

    Thanks again.

    Plugin Author Erik

    (@codekraft)

    It’s possible that cron “interval” comes from a plugin which was then deleted.

    It’s my mistake, i should show only the intervals registered by me (or by WordPress), so that what you’re reporting would not happen.
    As usual good point, thank you, i’ll add it to the cf7a issues for the next version 😉

    Thread Starter Wendihihihi

    (@wendihihihi)

    It might be solved already, Erik. In core/functions.php, I changed the cron from 5min to 6min and checked if [unban_after] => 6min was there, which was the case. Then, I changed it back to 5min, and [unban_after] => 5min was there. So, maybe it was just a one-time thing that went wrong during saving or installing.

    But still, if you only have a list with your and WordPress’s crons, it would be better indeed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.