• Resolved Peter Smits

    (@psmits1567)


    The latest version includes a new function to add bad ip’s after a treshold into the frontend blocklist. This does not seem to work, I get more then the treshold setting emails that the ip is blocked. E.g. treshold is set to two, but I got 7 emails stating that the ip has been blocked.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Peter Smits

    (@psmits1567)

    Further investigation revealed, that the IP was added to the blocklist. But the email reporting did not stop.
    As soon as an IP is added to the blocklist, I would expect to not get anymore emails about blocking the IP. Or the content of the email should indicate that the IP is blocked because it is within the blocklist. But that should be an option to receive those emails stating that the IP is within the blocklist

    Plugin Author ip2location

    (@ip2location)

    Will stop the email notification.

    Thread Starter Peter Smits

    (@psmits1567)

    Yes please, because this morning I got 130 mails from the same IP
    Regards,
    Peter

    Thread Starter Peter Smits

    (@psmits1567)

    After updating to the latest version I have this on one of my installations

    {"time":"2022-09-14 07:23:54","client_ip":"128.199.156.161","country":"SG","is_proxy":"","proxy_type":"","lookup_by":"BIN","cache":false,"uri":"https:\/\/stack-psmits.nl\/assets\/plugins\/jquery-file-upload\/server\/php\/","message":"Country not in the list.","action":"BLOCKED"}
    {"time":"2022-09-14 07:23:54","client_ip":"128.199.156.161","country":"SG","is_proxy":"","proxy_type":"","lookup_by":"BIN","cache":false,"uri":"https:\/\/stack-psmits.nl\/assets\/plugins\/jquery-file-upload\/server\/php\/","message":"Send notification email.","action":"ABORTED"}
    {"time":"2022-09-14 07:23:55","client_ip":"128.199.156.161","country":"SG","is_proxy":"","proxy_type":"","lookup_by":"??","cache":true,"uri":"https:\/\/stack-psmits.nl\/assets\/plugins\/jQuery-File-Upload\/server\/php\/","message":"Country not in the list.","action":"BLOCKED"}
    {"time":"2022-09-14 07:23:55","client_ip":"128.199.156.161","country":"SG","is_proxy":"","proxy_type":"","lookup_by":"??","cache":true,"uri":"https:\/\/stack-psmits.nl\/assets\/plugins\/jQuery-File-Upload\/server\/php\/","message":"Send notification email.","action":"ABORTED"}
    {"time":"2022-09-14 07:23:55","client_ip":"128.199.156.161","country":"SG","is_proxy":"","proxy_type":"","lookup_by":"BIN","cache":false,"uri":"https:\/\/stack-psmits.nl\/assets\/plugins\/jquery-file-upload\/server\/php\/","message":"Redirected to: \"https:\/\/google.com\".","action":"REDIRECTED"}
    {"time":"2022-09-14 07:23:56","client_ip":"128.199.156.161","country":"SG","is_proxy":"","proxy_type":"","lookup_by":"??","cache":true,"uri":"https:\/\/stack-psmits.nl\/assets\/plugins\/jQuery-File-Upload\/server\/php\/","message":"Redirected to: \"https:\/\/google.com\".","action":"REDIRECTED"}
    {"time":"2022-09-14 07:23:58","client_ip":"128.199.156.161","country":"SG","is_proxy":"","proxy_type":"","lookup_by":"??","cache":true,"uri":"https:\/\/stack-psmits.nl\/admin\/assets\/plugins\/jquery-file-upload\/server\/php\/","message":"Country not in the list.","action":"BLOCKED"}
    {"time":"2022-09-14 07:23:58","client_ip":"128.199.156.161","country":"SG","is_proxy":"","proxy_type":"","lookup_by":"??","cache":true,"uri":"https:\/\/stack-psmits.nl\/admin\/assets\/plugins\/jquery-file-upload\/server\/php\/","message":"Send notification email.","action":"ABORTED"}
    {"time":"2022-09-14 07:23:59","client_ip":"128.199.156.161","country":"SG","is_proxy":"","proxy_type":"","lookup_by":"??","cache":true,"uri":"https:\/\/stack-psmits.nl\/admin\/assets\/plugins\/jquery-file-upload\/server\/php\/","message":"Redirected to: \"https:\/\/google.com\".","action":"REDIRECTED"}
    {"time":"2022-09-14 07:24:00","client_ip":"128.199.156.161","country":"SG","is_proxy":"","proxy_type":"","lookup_by":"??","cache":true,"uri":"https:\/\/stack-psmits.nl\/admin\/assets\/plugins\/jQuery-File-Upload\/server\/php\/","message":"Country not in the list.","action":"BLOCKED"}
    {"time":"2022-09-14 07:24:00","client_ip":"128.199.156.161","country":"SG","is_proxy":"","proxy_type":"","lookup_by":"??","cache":true,"uri":"https:\/\/stack-psmits.nl\/admin\/assets\/plugins\/jQuery-File-Upload\/server\/php\/","message":"Send notification email.","action":"ABORTED"}
    {"time":"2022-09-14 07:24:01","client_ip":"128.199.156.161","country":"SG","is_proxy":"","proxy_type":"","lookup_by":"??","cache":true,"uri":"https:\/\/stack-psmits.nl\/admin\/assets\/plugins\/jQuery-File-Upload\/server\/php\/","message":"Redirected to: \"https:\/\/google.com\".","action":"REDIRECTED"}
    {"time":

    The IP was not added to the blocklist!!
    I received 25 emails due to not adding into the blocklist
    Any idea??
    Regards,
    Peter

    Thread Starter Peter Smits

    (@psmits1567)

    I have written my own code to add the IP to the blacklist.
    That works like a charm.
    If you want the code you can contact me on Slack psmits1567
    Regards,
    Peter

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘auto adding of ip to blocklist is not working on frintend’ is closed to new replies.