Page 10 of 10 FirstFirst ... 8910
Results 91 to 99 of 99
  1. #91
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,474
    Plugin Contributions
    11

    Default Re: AbuseIPDB Integration module

    You might want to move that message inside the INSTALLATTION AND UPGRADE section.

  2. #92
    Join Date
    May 2008
    Location
    United States
    Posts
    465
    Plugin Contributions
    1

    Default Re: AbuseIPDB Integration module

    Quote Originally Posted by dbltoe View Post
    Please review your README.md and identify the steps from an encapsulated plugin to a newer plugin. Otherwise, others will lose their API data as we did.

    I would note that, normally, a plugin notifies the owner of an update, the update is done, and the option to clean old files follows the upgrade. https://docs.zen-cart.com/dev/plugin...ins/upgrading/
    As stated, the instructions are clear — you need to uninstall. I could’ve made it an upgrade, but that would’ve meant a lot more work for the installer. Unfortunately, this means you’ll lose your database data. It is possible to skip uninstalling certain tables, but that’s more of an advanced option. Since I’m offering this for free, I don’t have the time to troubleshoot those kinds of setups. This update adds a lot of new features, so it had to be done this way.
    marcopolo
    Zen Cart 2.1.0 | PHP 8.3.6 | MariaDB 10.11.8

  3. #93
    Join Date
    May 2008
    Location
    United States
    Posts
    465
    Plugin Contributions
    1

    Default Re: AbuseIPDB Integration module

    Posting again so everyone is clear on this:

    INSTALLATION AND UPGRADE
    Major Update Notice: If you are upgrading from v3.0.4 or earlier, you must uninstall the previous module before installing v4.0.0.
    ⚡ Important: Be sure to screen-capture your existing settings before uninstalling AbuseIPDB v3.0.4 or lower to preserve your configuration.

    Advanced Uninstallation: Preserving Cache Database
    If you are an advanced user and do not want to lose your cache database when uninstalling the plugin, you can modify the installer to preserve the database tables (abuseipdb_cache, abuseipdb_maintenance, and abuseipdb_flood). Follow these steps:

    Open the installer file for your current version (e.g., ScriptedInstaller.php) in a text editor.
    Locate the executeUninstall() method near the end of the file.
    Delete the following lines to prevent dropping the tables during uninstallation:
    PHP Code:
    $this->executeInstallerSql("DROP TABLE IF EXISTS " TABLE_ABUSEIPDB_CACHE);
    $this->executeInstallerSql("DROP TABLE IF EXISTS " TABLE_ABUSEIPDB_MAINTENANCE); 
    Save the file and proceed with the uninstallation via the Zen Cart admin panel. This will remove the plugin settings but leave the tables intact.
    When you install the new version, the installer will skip creating these tables if they already exist, preserving your data.


    🛡️ Major Release – AbuseIPDB v4.0.0

    This version introduces advanced flood detection and blocking, giving you full control over how your site handles aggressive traffic patterns.

    🚨 What’s New:
    Flood Blocking by IP Range
    You can now automatically block 2-octet (e.g., 192.168.*) or 3-octet (e.g., 192.168.1.*) IP ranges.
    Example: If 192.168.x.x exceeds the request limit (default 25 hits in 30 minutes), the entire 2-octet range will be blocked. If 30 minutes pass with no further hits, the block resets.

    Country & Foreign Blocking
    Works the same way — if traffic from a country exceeds the flood threshold, the country is temporarily blocked.
    You can choose to allow low-score IPs through by setting a minimum AbuseIPDB score (or set it to 0 to block all traffic from that country).
    Manual country blocking is also supported.

    High Score Caching
    New AbuseIPDB high-score cache prevents repeated API calls. If an IP already scored above the block threshold, it won’t be rechecked for X days (default: 7).

    New Visual Shields in Who’s Online
    Clearly see why an IP is being blocked:

    🔴 Red – Score-blocked by AbuseIPDB

    🟣 Purple – Manually blacklisted

    🔵 Blue – Manually country-blocked

    🟠 Orange – Flood-blocked (range, country, or foreign)


    Personal Recommendation:
    For daily use, I recommend enabling only the 2-octet, 3-octet, and foreign flood protection.
    Use country-based blocking only during an active attack — it will block IPs from your default country as well.

    NOTE:
    The 2-octet and 3-octet flood logic will block IPs even from your default country — there's no skip setting for those.
    This is by design, as tight-range IP floods are typically bot attacks.
    I may add an option to bypass default-country IPs in a future version.

    Enjoy!
    marcopolo
    Zen Cart 2.1.0 | PHP 8.3.6 | MariaDB 10.11.8

  4. #94
    Join Date
    May 2008
    Location
    United States
    Posts
    465
    Plugin Contributions
    1

    Default Re: AbuseIPDB Integration module

    Quote Originally Posted by marcopolo View Post
    Posting again so everyone is clear on this:

    INSTALLATION AND UPGRADE
    Major Update Notice: If you are upgrading from v3.0.4 or earlier, you must uninstall the previous module before installing v4.0.0.
    ⚡ Important: Be sure to screen-capture your existing settings before uninstalling AbuseIPDB v3.0.4 or lower to preserve your configuration.

    Advanced Uninstallation: Preserving Cache Database
    If you are an advanced user and do not want to lose your cache database when uninstalling the plugin, you can modify the installer to preserve the database tables (abuseipdb_cache, abuseipdb_maintenance, and abuseipdb_flood). Follow these steps:

    Open the installer file for your current version (e.g., ScriptedInstaller.php) in a text editor.
    Locate the executeUninstall() method near the end of the file.
    Delete the following lines to prevent dropping the tables during uninstallation:
    PHP Code:
    $this->executeInstallerSql("DROP TABLE IF EXISTS " TABLE_ABUSEIPDB_CACHE);
    $this->executeInstallerSql("DROP TABLE IF EXISTS " TABLE_ABUSEIPDB_MAINTENANCE); 
    Save the file and proceed with the uninstallation via the Zen Cart admin panel. This will remove the plugin settings but leave the tables intact.
    When you install the new version, the installer will skip creating these tables if they already exist, preserving your data.


    🛡️ Major Release – AbuseIPDB v4.0.0

    This version introduces advanced flood detection and blocking, giving you full control over how your site handles aggressive traffic patterns.

    🚨 What’s New:
    Flood Blocking by IP Range
    You can now automatically block 2-octet (e.g., 192.168.*) or 3-octet (e.g., 192.168.1.*) IP ranges.
    Example: If 192.168.x.x exceeds the request limit (default 25 hits in 30 minutes), the entire 2-octet range will be blocked. If 30 minutes pass with no further hits, the block resets.

    Country & Foreign Blocking
    Works the same way — if traffic from a country exceeds the flood threshold, the country is temporarily blocked.
    You can choose to allow low-score IPs through by setting a minimum AbuseIPDB score (or set it to 0 to block all traffic from that country).
    Manual country blocking is also supported.

    High Score Caching
    New AbuseIPDB high-score cache prevents repeated API calls. If an IP already scored above the block threshold, it won’t be rechecked for X days (default: 7).

    New Visual Shields in Who’s Online
    Clearly see why an IP is being blocked:

    🔴 Red – Score-blocked by AbuseIPDB

    🟣 Purple – Manually blacklisted

    🔵 Blue – Manually country-blocked

    🟠 Orange – Flood-blocked (range, country, or foreign)


    Personal Recommendation:
    For daily use, I recommend enabling only the 2-octet, 3-octet, and foreign flood protection.
    Use country-based blocking only during an active attack — it will block IPs from your default country as well.

    NOTE:
    The 2-octet and 3-octet flood logic will block IPs even from your default country — there's no skip setting for those.
    This is by design, as tight-range IP floods are typically bot attacks.
    I may add an option to bypass default-country IPs in a future version.

    Enjoy!
    Important Note:
    Actually, do not keep the old tables — the new version of the plugin includes an updated abuseipdb_cache table with a new column I forgot to mention (flood_tracked).
    marcopolo
    Zen Cart 2.1.0 | PHP 8.3.6 | MariaDB 10.11.8

  5. #95
    Join Date
    May 2008
    Location
    United States
    Posts
    465
    Plugin Contributions
    1

    Default Re: AbuseIPDB Integration module

    Ignore the post before this one where I gave you a option to preserve your tables that will not work. The new version of the plugin includes an updated abuseipdb_cache table with a new column I forgot to mention (flood_tracked).
    marcopolo
    Zen Cart 2.1.0 | PHP 8.3.6 | MariaDB 10.11.8

  6. #96
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    206
    Plugin Contributions
    7

    Default Re: AbuseIPDB Integration module

    I submitted a PR on GitHub for a new installer version that should resolve most of your problems.
    If you adopt it, you still have to update the install explanation in the readme...

  7. #97
    Join Date
    May 2008
    Location
    United States
    Posts
    465
    Plugin Contributions
    1

    Default Re: AbuseIPDB Integration module

    Quote Originally Posted by dbltoe View Post
    Plugin Manager was still showing 3.0.4, did an uninstall, zc_plugins directory showed only 4.0.0 as I had done the cleanup.

    Reinstalled using Plugin Manager and all is fine. Got the 47 and the Enable High Score...
    New Version Available: AbuseIPDB v4.0.1

    The latest version is now available on GitHub: v4.0.1
    This update adds full upgrade support — you can now upgrade without uninstalling.

    Special thanks to @piloujp for contributing to the improved upgrade logic.

    [@swguy] — please disregard my previously submitted v4.0.0 release. I’ll be submitting v4.0.1 instead.

    GitHub: https://github.com/CcMarc/AbuseIPDB
    marcopolo
    Zen Cart 2.1.0 | PHP 8.3.6 | MariaDB 10.11.8

  8. #98
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    206
    Plugin Contributions
    7

    Default Re: AbuseIPDB Integration module

    I installed 4.01 release over an old version without any problem. :)
    I just have one question, why do you keep version number in configuration table? With encapsulated plugins, Plugin Manager saves this information in plugin_control_version table already.

  9. #99
    Join Date
    May 2008
    Location
    United States
    Posts
    465
    Plugin Contributions
    1

    Default Re: AbuseIPDB Integration module

    Quote Originally Posted by pilou2 View Post
    I installed 4.01 release over an old version without any problem. :)
    I just have one question, why do you keep version number in configuration table? With encapsulated plugins, Plugin Manager saves this information in plugin_control_version table already.
    You're absolutely right — I could pull it from the plugin_control_version table. The encapsulated plugin logic is still fairly new to me, and I haven’t fully transitioned to Zen Cart v2.1.0 yet — I’m in the middle of that upgrade process. The version number in the configuration table was part of the older approach, and I just left it in place when converting the plugin to an encapsulated version.
    marcopolo
    Zen Cart 2.1.0 | PHP 8.3.6 | MariaDB 10.11.8

 

 
Page 10 of 10 FirstFirst ... 8910

Similar Threads

  1. AbuseIPDB integration?
    By marcopolo in forum General Questions
    Replies: 3
    Last Post: 4 May 2022, 06:31 PM
  2. v155 Full Ebay Integration Module
    By Wilkesy in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 19 Jun 2020, 03:29 AM
  3. v156 PayCertify Payment Integration Module
    By PayCertify in forum Addon Payment Modules
    Replies: 1
    Last Post: 1 May 2019, 11:29 PM
  4. Mailchimp Module Integration
    By hamid380 in forum Addon Sideboxes
    Replies: 5
    Last Post: 7 Sep 2011, 01:11 PM
  5. Custom Shipping Module Integration
    By youderian in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 22 Dec 2008, 05:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR