Zend certified PHP/Magento developer

Magento 2.4. – Custom Maintenance Mode Page – Allowed IPs

I’ve created a custom maintenance mode page (within pub/errors directory)

This works fine, but it seems when using a custom maintenance mode page, the site doesn’t take into account the IPs added to .maintenance.ip, has anyone else come across this?

If I remove my custom page, and use the default Magento maintenance page, then the IPs added work as expected.

Any thoughts would be appreciated.