Magento 1.x Module to restrict access to robots or any unwanted visitors to the website based on a list of IP addresses (via configuration and/or file) or based on country thanks to MaxMind database (free and paid are supported).
Blocked visitors can be redirected to a specific url or have a strict 403 HTTP error
- Allow / disallow specifi countries (allowed countries overwrites disallowed countries restrictions)
- Allow / disallow a list of IPs (Allowed IPs overwrites countries restrictions)
- Redirect restricted access to a specific url or send a 403 HTTP Error
- A file to allow or disallow IPs can be added into your Magento installation under the
mediafolder and configured through the configuration page of the module - Specific User Agents like GoogleBot can be allowed to get through the restriction
- Install modman
- Use the command from your Magento installation folder:
modman clone https://github.com/diglin/Diglin_Geoip.git
- Install composer
- Create a composer.json into your project like the following sample:
{
...
"require": {
"diglin/diglin_geoip":"1.*"
},
"repositories": [
{
"type": "composer",
"url": "http://packages.firegento.com"
}
]
}
- Then from your composer.json folder:
php composer.phar installorcomposer install
- You can copy the files from the folders of this repository to the same folders of your installation starting from the
srcfolder
Go to the menu System > Configuration > Diglin > Geoip and setup the module following your own restriction rules
modman remove Diglin_Geoip
- Delete the files
- app/code/community/Diglin/Geoip
- app/etc/modules/Diglin_Geoip.xml
- lib/Diglin/MaxMind
- lib/Diglin/GeoIp2
- Sylvain Rayé
- http://www.diglin.com/
- @diglin
- Follow me on github!