PHP code example of ip2location / magento2-ip2location-countrystateblocker
1. Go to this page and download the library: Download ip2location/magento2-ip2location-countrystateblocker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ip2location / magento2-ip2location-countrystateblocker example snippets
php -q bin/magento cache:disable
php -q bin/magento module:enable --clear-static-content Hexasoft_IP2LocationCountryBlocker
php -q bin/magento setup:upgrade
php -q bin/magento cache:enable