Deny admin login from Internet

If i allow remote access to the web interface from internet, is there a way to restrict the admin account from logging in? This can be achieved in apache with modsecurity.

For urbackup, the server service is running its own http module.