How to restrict your users from logging in outside the office
1.From your menu go to Team
2.Edit the user you wish to block by click the Edit Icon
3.In the user’s page, under the “Allowed IP addresses” section click Add IP address
4.Type in the IP address of your office.
This user can now only log in from Your office IP address.
Read here how to find your IP address