// GITHUB / APACHE
GitHub · Apache
Apache httpd Require ip directives for GitHub. 8,718 CIDRs, refreshed daily.
// apache_github_allow.conf
# Github IP Ranges # Updated: 2026-11-13 02:16:33 # 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_github_allow.conf Require ip 3.41.210.0/24 Require ip 3.42.157.0/24 Require ip 3.219.87.128/32 Require ip 4.148.0.0/14 Require ip 4.152.0.0/14 Require ip 4.156.0.0/15 Require ip 4.158.254.48/28 Require ip 4.159.108.160/28 Require ip 4.159.197.192/28 Require ip 4.163.8.144/28 Require ip 4.172.0.0/14 Require ip 4.180.0.0/16 Require ip 4.186.157.192/28 Require ip 4.187.247.160/28 Require ip 4.195.217.80/28 … (6480 more lines)
// apache_github_deny.conf
# Github IP Ranges # Updated: 2026-11-13 02:16:33 # 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_github_deny.conf Deny from 3.41.210.0/24 Deny from 3.42.157.0/24 Deny from 3.219.87.128/32 Deny from 4.148.0.0/14 Deny from 4.152.0.0/14 Deny from 4.156.0.0/15 Deny from 4.158.254.48/28 Deny from 4.159.108.160/28 Deny from 4.159.197.192/28 Deny from 4.163.8.144/28 Deny from 4.172.0.0/14 Deny from 4.180.0.0/16 Deny from 4.186.157.192/28 Deny from 4.187.247.160/28 Deny from 4.195.217.80/28 … (6481 more lines)