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 with:

Other visitors will then see the maintenance page while the allowlisted IP can still access the store.

Check the current status at any time with:

When the work is finished, disable maintenance mode again:

This is particularly useful for Magento upgrades and deploymentsbecause you can test the frontend before reopening the store to everyone.

Enabling Maintenance Mode and Allowing Your Own IP Address
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: