During upgrades or major changes, you may want to block visitors temporarily while continuing to work on the store yourself. Magento 2 can enable maintenance mode and exempt selected IP addresses. Enable maintenance mode and allow your own IP address…
Disable maintenance mode for certain IP (Magento 2)
With Magento 2 it is possible to disable the maintenance mode for only a certain IP. Disabling the Magento 2 maintenance mode for your IP lets you browse the frontend and admin area as normal. All other visitors will still…
Deactivate / bypass maintenance mode for IP (Magento 2)
When working on your Magento 2 shop it is always a good idea to put it in maintenance mode. The only problem with this approach is that nobody, not even you :), can now work with the store. To bypass…
Disabling maintenance mode for a specific IP address (Magento 2)
Magento 2 allows you to disable maintenance mode for a specific IP address. This means you can keep using the storefront and admin area while carrying out maintenance, while other visitors see the maintenance notice. To allow your own IP…
Restricting maintenance mode by IP address (Magento 1)
When you create maintenance.flag in Magento’s root directory, the entire store becomes unavailable, including the admin area. That is inconvenient if you still need to work on the site. Add the following code at the beginning of index.php to allow…