Disable login form on external networks

I have created a custom integration that blocks login form from external networks while allowing existing authenticated sessions to work from any location. A way to limit bots trying to guess your password.

Easier than VPN or Cloud Flare tunnel. Install, enable and it will work for your whole family!

Check it our here GitHub - raivisdejus/ha-disable-external-login: Disable ability to log in to Home Assistant from an external network

Hi, is there are reason for not just using integrated TOTP instead something custom made that has to be installed and maintained?

My custom component is an extra layer that also hides the login form from on the external networks in case you want to hide it.

But you can also use the built in functionality to disable ability to log in for some user from the external network and / or add 2FA (TOTP)