How to enable Maintenance Mode for Specific IP Addresses in Magento 2?
A) Edit the .htaccess file manually.
B) Use the php bin/magento maintenance:allow-ips command.
C) Modify the PHP code in your theme files.
D) Enable it through the Magento admin panel.