Block visitors by country or state.
This plugin enable Magento users to easily redirect or block visitors based on their geo location. Below are the key features of this plugin
app folder into Magento installation directotry.
Open terminal or command line then navigate to Magento installation directory.
Enable IP2Location CountryStateBlocker extension by following commands,
php -q bin/magento cache:disable php -q bin/magento module:enable --clear-static-content IP2Location_CountryStateBlocker php -q bin/magento setup:upgrade
Open your web browser, login to Magento as administrator and navigate to Store > Configuration > IP2Location Country-State Blocker > Settings.
Configure the correct database path and API key.