A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
If you want to affect all user, use the Network location settings down that page. And keep in mind this will also affects admins and access to the admin portal, so make sure you allow at least some ranges.
If you need more flexibility, including the ability to assign restrictions on a per-site basis, you will need Conditional Access policies/Azure AD Premium license. https://learn.microsoft.com/en-us/sharepoint/control-access-from-unmanaged-devices#block-or-limit-access-to-a-specific-sharepoint-site-or-onedrive