Under Device access in the OneDrive Admin Center, you can configure additional security restrictions, as shown in the following screenshot:

Let's take a look at what these security restrictions do:
- Control access based on network location: Use this option to specify networks that OneDrive can be accessed from. If you're specifying your corporate network, be sure to include all of your public addresses. If you lock yourself out, you will need to contact support to regain access.
This setting will affect access to SharePoint Online, as well as any other services that require access to SharePoint Online, such ...