// MICROSOFT365 / APACHE
microsoft365 · Apache
Apache httpd Require ip directives for microsoft365. 93 CIDRs, refreshed daily.
// apache_microsoft365_allow.conf
# Microsoft365 IP Ranges # Updated: 2026-07-12 03:46:18 # Source: https://github.com/rezmoss/cloud-provider-ip-addresses # License: https://github.com/rezmoss/cloud-provider-ip-addresses/LICENSE # This file is generated automatically. Do not edit it directly. # Updates daily at 02:00 UTC # To restrict access to only these IPs in Apache, # add the following line to your .htaccess file or your virtual host configuration file (e.g., /etc/apache2/sites-available/000-default.conf): # Include /path/to/apache_microsoft365_allow.conf Require ip 13.107.6.152/31 Require ip 13.107.6.171/32 Require ip 13.107.6.192/32 Require ip 13.107.9.192/32 Require ip 13.107.18.10/31 Require ip 13.107.18.15/32 Require ip 13.107.128.0/22 Require ip 13.107.136.0/22 Require ip 13.107.140.6/32 Require ip 20.20.32.0/19 Require ip 20.190.128.0/18 Require ip 20.231.128.0/19 Require ip 23.103.160.0/20 Require ip 40.92.0.0/15 Require ip 40.96.0.0/13 … (67 more lines)
// apache_microsoft365_deny.conf
# Microsoft365 IP Ranges # Updated: 2026-07-12 03:46:18 # Source: https://github.com/rezmoss/cloud-provider-ip-addresses # License: https://github.com/rezmoss/cloud-provider-ip-addresses/LICENSE # This file is generated automatically. Do not edit it directly. # Updates daily at 02:00 UTC # To deny access from these IPs in Apache, # add the following line to your .htaccess file or your virtual host configuration file (e.g., /etc/apache2/sites-available/000-default.conf): # Include /path/to/apache_microsoft365_deny.conf Deny from 13.107.6.152/31 Deny from 13.107.6.171/32 Deny from 13.107.6.192/32 Deny from 13.107.9.192/32 Deny from 13.107.18.10/31 Deny from 13.107.18.15/32 Deny from 13.107.128.0/22 Deny from 13.107.136.0/22 Deny from 13.107.140.6/32 Deny from 20.20.32.0/19 Deny from 20.190.128.0/18 Deny from 20.231.128.0/19 Deny from 23.103.160.0/20 Deny from 40.92.0.0/15 Deny from 40.96.0.0/13 … (68 more lines)