When the user changes the password, the user is logged out and redirected to the login page. Only the page user/{uid}/edit can be visited, otherwise, the user is logged out.
Restrict IP Email Domain extends the Restrict IP module, adding the functionality of applying the restrictions only to a specific set of email domains.