Skip to content

Installation

Overview · Configuration · Usage · Developer notes · FAQ

  • CS-Cart or Multi-Vendor 4.17.2 – 4.21.x.
  • PHP 7.4 – 8.3 (as your CS-Cart version allows).
  • Write access to var/ (the add-on keeps its compiled rules and GeoIP databases in var/kv_bot_country_blocker/).
  • Optional: APCu (faster rate limits and GeoIP caching), a cron job for maintenance.
  1. In the admin panel open Add-ons > Manage add-ons, click the upload icon and upload kv_bot_country_blocker-1.0.1.zip.
  2. Find Bot & Country Blocker in the list and click Install.
  3. Open the add-on settings, License tab, and enter your license key (or the CS-Cart Marketplace license number in Add-ons > Manage).
  4. Open Website > Bot & Country Blocker.

After the installation the add-on runs in learning mode with a set of default rules: nothing is blocked yet, every decision is only logged.

The license is checked once a day from the admin panel; the storefront never waits for it. The license card at the top of the add-on page shows the state, the licensed domain and the update period.

License card

Without a valid license (after the 14-day trial and grace periods) the rules are no longer enforced: every rule only writes “would block” entries to the log, as in learning mode. Your rules, bot settings and log stay saved.

Maintenance (log retention, expired bans, list URLs, the optional monthly GeoIP update) runs by itself once an hour when an administrator opens the admin panel. For stores with heavy bot traffic add a daily cron job:

php /path/to/your/store/admin.php --dispatch=kv_bot_country_blocker.cron

The exact command for your store is shown in the add-on settings, Log tab.

Upload the new zip over the installed add-on (Add-ons > Manage add-ons, upload) or install the Upgrade Center package. Your rules, settings and log are kept; missing tables and settings are added automatically on the next admin page view.

Add-ons > Manage add-ons > Bot & Country Blocker > Uninstall. The add-on removes its tables, settings, language variables, compiled rules, downloaded GeoIP databases and its group in robots.txt.