Microsoft 365 uses 10 prefixes for SharePoint Online and OneDrive for Business.
Short answer
SharePoint Online and OneDrive for Business.
Prefixes
What changed
No prefixes added or removed since we started tracking this list. Changes appear here the day after the provider publishes them.
Allowlist formats
nginx (first 5 prefixes)
allow 104.146.128.0/17; allow 13.107.136.0/22; allow 150.171.40.0/22; allow 40.108.128.0/17; allow 52.104.0.0/14; deny all;
iptables (first 5 prefixes)
iptables -A INPUT -s 104.146.128.0/17 -j ACCEPT iptables -A INPUT -s 13.107.136.0/22 -j ACCEPT iptables -A INPUT -s 150.171.40.0/22 -j ACCEPT iptables -A INPUT -s 40.108.128.0/17 -j ACCEPT iptables -A INPUT -s 52.104.0.0/14 -j ACCEPT
Generate the full list from the CSV, and refresh it on a schedule: providers add and retire prefixes often.
Sources
- Microsoft 365: published IP ranges · checked 5 Nov 2026
- Microsoft 365 documentation