GeoIP Redirect for Magento 2

Automatically redirect customers, change currency and language depending on visitors’ location. Use Magento 2 GeoIP extension to expand your business across other countries without creating a separate store.
  • Automatically detect users’ location
  • Redirect visitors to appropriate store view or custom URL
  • Restrict redirection for particular IP addresses
  • Display prices in visitor's local currency
  • Ignore user agents
  • Hyva-ready storefront
Add to Wish List
Product updates and support for 12 months

Updates and support prolongation - $109

more info

Pick a combo deal with 15% discount:

Save $80.55

Magento 2 GeoIP store and currency switcher is the tool to enter the international e-commerce market by adapting store information to a customer location. Broaden your business horizons to other countries and let your foreign customers shop easily with multi-language, multi-currency and multi-store functionality with Magento 2 GeoIP extension.

Improve shopping experience of your foreign customers

Display confirmation pop-up before redirecting

Set introducing confirmation and notification pop-up before redirecting. Comply with the requirements of EU regulations regarding geo-blocking and country redirects.

Redirect users to a specific store view

Automatically determine visitors’ location and redirect them to the correct store view. With the help of the extension you can improve customers' shopping experience by showing localized information in familiar language and currency.

Change currency based on visitors’ location

The Magento 2 GeoIP extension detects the location of your store visitors and changes price currency to the one which is actually used in the potential customer’s country. Also, your customers don’t have to choose the language prior to starting purchasing - it will be done automatically.

Restrict access to your website to specific IP addresses

With the advanced Magento 2 GeoIP Redirect extension, you can block certain visitors by their IP addresses and choose the CMS page that will be displayed to the restricted customers.

Ignore search engines and user agents

Avoid unwanted redirects for user agents and search engine spiders. You can specify which of them to ignore. For your convenience, the most popular search engines like Google, Yahoo, Bing, etc. are ignored by default.

Redirect only from the home page

Sometimes a user may need to see particular pages of your store just as they are. In that case, you can enable the ‘Redirect From Home Page Only’ option. Thus, as soon as viewers enter the website homepage, they would be automatically redirected to the appropriate store view.


Flexibly Adjust Redirection Options

🎉 Set Magento 2 Geo IP redirects to specific URLs

Use this option to redirect your customers to a specific store page, blog or youtube channel based on their location. For example, if you don’t provide delivery of some items to specific countries or regions, you can redirect users from these regions to the page with the information where they can buy this product offline or find out more about your company.

🎉 Restrict redirection for particular URLs

In case you want to keep the URLs like home or FAQ page the same for all store views, you can exclude them from redirection. At the same time, the advanced Magento 2 GeoIP extension lets you apply redirect option only to certain store pages, e.g. Delivery info or Contacts.

🎉 Redirect users for each visit or only for the first one

Choose whether to adjust your Magento 2 webstore to users’ geolocation and redirect them automatically or to allow them to choose which store version is more convenient. In this case, they will be automatically redirected only during their first visit and then will be able to choose which store view to use. This feature works for both guests and registered customers.

🎉 Restrict redirects by IP address

Sometimes you may need to allow certain people to see your web site as it is despite their location. For example, when some of your staff work remotely from different countries. In this case, use Magento 2 GeoIP store switcher to specify their IPs in the module’s settings.

How to configure Varnish Cache and redirects compatibility?

Due to the App Server utilization, Magento 2 GeoIP currency switcher and Varnish Cache are not compatible out of the box. But this compatibility can be configured additionally by adding two code lines to the web server configuration.


For nginx — add the following code in any place of the nginx.conf file:

set_real_ip_from <varnish-ip>;


For apache — add the following code in any place of the .htaccess file:

RemoteIPTrustedProxy <varnish-ip>;

Where <varnish-ip>  is an IP address of the Varnish server.  

These changes can be added to the web server on your own or with the help of the hosting provider. If you decide to change the settings on your own, please make sure that you have root access, and don’t forget to restart the server after all the changes will be saved.


More content management tools with Blog Pro

Speak the same language with your customers using our Magento 2 Blog plugin. Let your visitors share their opinion in comments and establish a dialog with their vendor.


Magento 2 GeoIP Switcher is the Magento 2 extension that is a bundle of the Magento 2 Auto Currency Switcher and Magento 2 Auto Language Switcher extensions that use the GeoIP database detect customers' location and correspondingly display the locale and prices in their local language and currency.

Adobe partner logo
Magento Marketplace logo
See 500+ verified reviews
1 Single points of sales
Trusted by Customers
Are Amasty extensions compatible with all themes and extensions by other vendors?
Amasty extensions work with all plugins we issued and with most 3rd-party plugins. If you come across a Magento 2 compatibility issue with any third-party module, we’ll definitely try to help you. If you face any technical issues, please create a ticket...
Will I get free support and updates?
Product updates for extensions purchased before Feb 1, 2022With the transition to product subscriptions, you will receive product updates for all extensions purchased before Feb 1, 2022 throughout the entire grace period — up to Aug 1, 2022. If you ...
Do you have the installation service?
Yes, you can use installation and configuration services that are available as the part of Pro and Premium add-ons for your product subscriptions.Please note that this installation service doesn’t include uninstallation. So, if you need to completely...
Can I request a free trial?
Amasty doesn’t provide any trials of Magento extensions. There's one exception: Amasty extensions are provided for testing or demo purposes to our official Platinum Partners as a part of the “access to Amasty extensions for testing purposes with Composer...
Can I test an Amasty extension on a staging site before transferring it to a live one?
Yes, you can install any Amasty extension on a test site and configure all the settings there before doing it on your live store.
How can I get a refund?
Amasty offers to its Customers a thirty (30) day money-back guarantee for the Software. In case the acquired extension didn’t meet your expectations, our support team is always ready to help you. Fees for support subscriptions and any services provided...
How can I receive a discount?
We are now working at a loyalty program for our customers that is supposed to bring even greater benefits in the long term. While it’s not out yet, you can look through these Special Offers. New discounts and specials are added every month. To stay ...
How to update a Magento 2 Amasty extension?
To update a Magento 2 extension by manual upload:1. log in to the customer account;2. navigate to the Products tab, scroll to the packages section, and click the Download link next to the extension that should be updated;3. Important: If some extension...
If I need additional features to be added to an Amasty extension, how can I ask for it?
To leave your feature request, log in to your customer account and open the Products tab. Then, scroll down to the bottom of the page, and leave your feature request in the following form: As soon as you send your request, it is considered by our ...
Magento 2 Amasty extensions installation
Each Amasty extension package is provided with the extension files, installation & setup guides, and a license agreement. Some extensions include import files examples as well. So how to install our Magento extension? What is the plugin...
How can I prolong support?
If you have an active support service subscription, it grants you access to support services for all products purchased before Feb,1 as long as your subscription is active. Alternatively, support services are only available as the part of a product ...
Can I change the EE extension to CE for free?
Usually, no, you can’t exchange modules. Please, contact our support managers and they’ll consider your case individually. → Learn more about our special offers
How can I get a discount to re-purchase plugins?
Usually, we don’t provide any discounts. But you can contact us, and we’ll consider your case individually. → Learn more about our special offers
What is the license policy? On how many websites can I use Amasty extensions?
Our license allows you to use a single extension license agreement on one Magento installation.If you run several domains on the same instance of Magento, you can use one extension license. However, if you run each website on a new installation of Magento...
How can I pay for Amasty extensions?
You can pay for our extensions in any convenient for you way as a full range of payment methods are supported. The most common means are credit card or PayPal. Security and fraud protection are guaranteed. If you need to pay for the order with a non...
How can I make Varnish Cache compatible with redirects?

GeoIP redirect module can be fully compatible with Varnish Cache in a few tweak. All you need is to update the server configuration file.

How can I test redirects for different countries in M2?

You can use a VPN service or an anonymizer to change your authentic IP address to a required one (geolocation) and see whether everything works smoothly. Read on to see all the possibilities.

How to fix the execution time limit of PHP scripts when importing the database?

Sometimes, it is unable to complete the database import due to execution time limit of PHP scripts. You can avoid this error by increasing the maximum execution time for your PHP scripts.

Customer Reviews

Do you need specific features added so you can achieve your business goals?

Drop us a line and we'll customize this extension for you!

You can always download the recent version free of charge from your account installing an upgrade is easy

See Magento (and other software) versions we support and guarantee their compatibility with our extensions

Version 1.5.0
Last Update: Jun 17, 2024
1.5.0 - Jun 17, 2024
  • New we added the Amasty IP Database Update Service, which allows you to refresh the IP database and ensure it remains consistently current
Version 1.4.0
Last Update: May 27, 2024
1.4.0 - May 27, 2024
  • Compatibility we added compatibility with the Hyvä Theme for the GeoIP Redirect. You can find the 'amasty/module-geoip-redirect-hyva' package for installing in composer suggest (Note: the compatibility is available as a part of an active product subscription or support subscription)
Version 1.3.10
Last Update: Jan 12, 2023
1.3.10 - Jan 12, 2023
  • Improvement we improved the extension’s compatibility with Varnish cache. For more details on the correct server configuration, please refer to the user guide
  • Fix we fixed the issue with the Force IP functionality when this IP address is added to the ignore list
  • Fix we resolved the problem with redirect when storecodes are enabled
  • Fix we eliminated the errors with the deprecated explode(), nl2br(), preg_split() functionalities occurring with PHP 8.1
1.3.9 - Apr 21, 2022
  • Improvement we switched the module to a declarative schema
1.3.8 - Jul 20, 2021
  • Fix we fixed the ‘Display Popup to Customers when Redirecting’ setting behaviour to be based on SCOPE_STORE
1.3.7 - Feb 17, 2021
  • Compatibility now the extension is compatible with Magento 2.3.6-p1 and 2.4.2
1.3.6 - Aug 12, 2020
  • Fix we fixed the issue with the required version of Amasty_Base extension
  • Fix we resolved the problem with redirect from home page only
1.3.5 - Jun 30, 2020
  • Fix we fixed the issue with redirecting when a notification popup is enabled
1.3.4 - Jun 08, 2020
  • Fix we fixed the issue with the confirmation popup text taken not from the store view where redirect happens
1.3.3 - May 18, 2020
  • Compatibility compatibility with Magento 2.3.5 version was improved
  • Fix we fixed the error caused by PARAM_NAME constant on Magento 2.2.7 version
1.3.2 - Apr 24, 2020
  • Fix we fixed the issue with showing a redirect popup if the page was cached
  • Fix we fixed the issue with locale changing before redirect confirmation
  • Fix we fixed the issue with redirection on product pages with different URL keys.
  • Fix we fixed the issue with redirection by IP in Magento Commerce 2.3.4
1.3.1 - Mar 30, 2020
  • Fix we fixed the issue with the possibility to save empty multiselect value
1.3.0 - Jan 21, 2020
  • New now it is possible to edit the redirection popup text with the help of WYSIWYG editor
Version 1.2.1
Last Update: Aug 12, 2019
1.2.1 - Aug 12, 2019
  • Fix the issue with redirect users from Home Page was resolved
1.2.0 - Jun 11, 2019
  • New unit tests were added to the Geo IP Data module
  • Improvement the code of the Geo IP Data module was refactored
Version 1.1.2
Last Update: Apr 08, 2019
1.1.2 - Apr 08, 2019
  • Compatibility the compatibility of Geo IP Data module with Magento 2.1.x was enhanced
1.1.1 - Mar 26, 2019
  • Improvement IPv6 support was added to Geo IP detection.
  • Improvement the possibility to upload the latest Geo IP Database was added
1.1.0 - Mar 06, 2019
  • New introducing confirmation and notification pop-ups before redirecting. Comply with the requirements of EU regulations regarding geo-blocking and country redirects
  • New the possibility to restrict the access to a website by IP address was added
  • Improvement minor visual improvements for the extension settings in the admin panel were implemented
Version 1.0.18
Last Update: Jan 21, 2019
1.0.18 - Jan 21, 2019
  • Improvement minor code improvement
1.0.17 - Dec 03, 2018
  • Compatibility the compatibility with the Magento Full Page Cache was enhanced
1.0.16 - Nov 21, 2018
  • Fix the issue with the redirection on product/category pages malfunction was resolved
1.0.15 - Nov 19, 2018
  • Fix the issue with wrong geolocation detection was resolved
1.0.14 - Nov 12, 2018
  • Fix the issue with the error when IP address fails to be found in the DB was resolved
1.0.13 - Nov 06, 2018
  • Fix security issues were resolved
1.0.12 - Oct 15, 2018
  • Fix the issue with the \"too many redirects\" error while selecting a store view was resolved
1.0.11 - Jul 09, 2018
  • Fix the \"Warning: strpos(): Empty needle\" error in var/report was resolved
1.0.10 - Jul 04, 2018
  • Improvement the location detection via GeoIP data was improved
1.0.9 - Jun 05, 2018
  • Improvement for EU's GDPR compliance the restriction for the last IP address's digit was implemented
  • Fix the issue with URL replacing was resolved
1.0.8 - May 28, 2018
  • Fix the issue with the incorrect redirect to categories and products when using different URLs for stores was fixed
1.0.7 - Mar 14, 2018
  • Fixed an issue with the wrong store scope
1.0.6 - Nov 29, 2017
  • Compatibility with the FPC extension is added.
  • Improved IP address check.
  • Improved import of GeoIP data.
1.0.5 - Jul 04, 2017
  • Minor improvement for the \"Apply Logic To\" option.
  • All URLs\" option is deactivated.
  • All Except Specified URLs\" option is active by default.
  • We added URLs excepted by default .
  • Restriction by Ip\" is renamed to \"IP to Ignore\" for better understanding.
  • Performance optimization.
1.0.4 - May 25, 2017
  • Fixed loop redirection if option \"First visit redirect only\" has value - yes, and urls like;
  • Fixed redirect after redirect;
  • Fixed error: Setting \"Currency\" in \"Enable Country\" didn't work if was activated \"Apply Logic To\" - \"Redirect From Home Page Only\";
  • Fixed currency switch on inconvenient URLs when \"Apply Logic To - Specified URLs\" + \"Enable Country\" set Currency;
  • Fix setting \"First visit redirect only\" didn't influence on setting \"Enable Country --> Currency\"/\"Enable Country --> Store View\". For repeat visit currency/store were the same.
1.0.3 - Feb 27, 2017
  • Improvements for detecting IP address
  • Improvements for redirecting specific country to specified store
  • Few performance optimizations
1.0.2 - Jan 04, 2017
  • Better compatibility with full page cache
  • Minor code refactoring
1.0.1 - Jun 06, 2016
  • Possibility to enable/disable extension per each store

Ratings & Reviews

92% of 100