New discounts and limited-time offers every two weeks! 💸 Don't miss out on your opportunity. SHOP NOW

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
60 days money back
Free lifetime updates
90 days free support

Clearly inform users about any questions related to your stores not to lose them

Save $57.70

Magento 2 GeoIP Store 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 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, you can 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 make Varnish Cache compatible with redirects?

Due to the App Server utilization, GeoIP Redirect and Varnish Cache are compatible only with particular limitations. To bring partial compatibility, you may use the following solution:


Find the Varnish Cache configuration file on your server (usually -/etc/varnish/default.vcl).


Add the following code to this file:

if (req.http.cookie !~ "PHPSESSID=") {
return (pass);


Make sure that the First visit redirect only option is set to Yes. Otherwise, you will be unable to use redirects.
Also keep in mind that your store will be displayed without cache during the first visit.


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.

Adobe partner logo
Magento Marketplace logo
See 202+ 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 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?
Yes, once you buy any extension(s) by Amasty, you’ll get free lifetime updates for the product(s).Also, you will get 3 months of a free trial for support subscription. Magento support subscription plans:Monthly Annual -20% Lite.vyobs1l-s{text-align:...
Do you have the installation service?
Yes, we provide a professional installation service. You can purchase it when ordering an extension. If you buy more than 1 extension in one order, we can install all of them! If you need to configure plugins according to your business needs, you can...
Can I request a free trial?
Amasty doesn’t provide any trials of Magento extensions. But we have three months of free support and a 60-day money-back guarantee. There's one exception: Amasty extensions are provided for testing or demo purposes to our official Platinum Partners...
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 provides a 60-day money-back guarantee. In case the acquired extension didn’t meet your expectations, our support team is always ready to help you.  To get a full or partial refund of your order, please create a ticket in our support...
How can I receive a discount?
According to the rules of Amasty's Reward Program, you get $15 back to your reward points for every $100 spent. You can spend them to buy other extensions or services from our catalog. These Points are valid for 60 days from the purchase date. You ...
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 thePackages section, andclick 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?
When you get any support subscription plan, it will be prolonged automatically. Also, you can cancel your subscription at any time. For this, go to your customer account and open the Subscriptions tab.
What should I do if my Reward Points have expired?
According to our reward program, the Reward Points are valid for 60 days starting from the moment they’re transferred to your account. But we always try to stay supportive, so you can create a ticket, and we’ll consider your case individually...
How can I use my Reward Points?
How to check your reward points balance? Step 1. Log in to your customer account or create a new one. After this, you will be redirected to your account dashboard. Step 2. In the left menu choose Reward points. Step 3. You will see your current reward...
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...
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?

Basicly, GeoIP redirect module is the Magento 2 extension and is not compatible with Varnish Cache. Magento 2 utilizes App Server and when you use Varnish Cache for your website the redirect functionality will not work properly.

However, you can bring partial compatibility.

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

Are you looking to add specific functionality for this extension or want to acquire a reliable development partner altogether? With custom development services by Amasty, you will receive high quality and cost-effective solutions developed by Magento professionals according to industry’s best practices.

Request a Quote

Submit this form now and we will get back to you promptly!

What feature your extension lacks?

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.3.8
Last Update: Jul 20, 2021
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
  • 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.
  • 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;
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
© 2009-2021 Amasty. All Rights Reserved.