Magmi, the Magento mass importer, is an alternative product importer offering better performance over the default Magento importer. This makes it a very powerful yet also dangerous tool as it effectively offers full access to your Magento database.

Offering secure access to Magmi

We have noticed a number of our customers have installed Magmi without properly securing their Magmi installation, opening up their shop to being exploited by nefarious actors. For this reason, all Hypernodes now block access to Magmi by default, which is probably how you ended up at this article.

Unblocking Magmi

To unblock Magmi and offer secure access to it for your users and/or developers, use the following steps:

  • Log in to your Hypernode using SSH and open the file /data/web/nginx/magmi.conf in your favorite editor.
  • Hash out (uncomment) the default location block at the top of the file which triggers redirection to this support article.

Then pick one of the snippets that applies to your wishes and save it as server.magmi or in your /data/web/nginx/magmi.conf config file.

NB: If you don’t want to update IP addresses in all config files with every change of IP address, you can choose to use include files

Protect your Magmi installation with HTTP basic authentication

Use this snippet if you want your Magmi to be available from any IP on the internet, but with password authentication.

Don’t forget to create a user:

Protect your Magmi installation with an IP whitelist

Use this snippet if you want your Magmi to be available from just a selected set of IP addresses.

Be sure to replace a.b.c.d with the IP address you wish to whitelist.

NB: You can add as many allow directives as you would like.

Fully block Magmi without redirect to our support documentation

To block Magmi without a redirect to our support documentation, use the following snippet:

HTTPS Only

We strongly recommend enforcing HTTPS-only on Magmi because of the possibility of entering database passwords or transferring other sensitive information.
If you haven’t enforced HTTPS across your whole site, you can enforce it for Magmi by adding the following line inside the location block:

10