// GITHUB / APACHE
GitHub · Apache
Apache httpd Require ip directives for GitHub. 6,736 CIDRs, refreshed daily.
// apache_github_allow.conf
# Github IP Ranges # Updated: 2026-05-21 03:20:30 # 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 00: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 192.30.252.0/22 Require ip 185.199.108.0/22 Require ip 140.82.112.0/20 Require ip 143.55.64.0/20 Require ip 2a0a:a440::/29 Require ip 2606:50c0::/32 Require ip 192.30.252.0/22 Require ip 185.199.108.0/22 Require ip 140.82.112.0/20 Require ip 143.55.64.0/20 Require ip 2a0a:a440::/29 Require ip 2606:50c0::/32 Require ip 20.201.28.151/32 Require ip 20.205.243.166/32 Require ip 20.87.245.0/32 … (6721 more lines)
// apache_github_deny.conf
# Github IP Ranges # Updated: 2026-05-21 03:20:30 # 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 00: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 192.30.252.0/22 Deny from 185.199.108.0/22 Deny from 140.82.112.0/20 Deny from 143.55.64.0/20 Deny from 2a0a:a440::/29 Deny from 2606:50c0::/32 Deny from 192.30.252.0/22 Deny from 185.199.108.0/22 Deny from 140.82.112.0/20 Deny from 143.55.64.0/20 Deny from 2a0a:a440::/29 Deny from 2606:50c0::/32 Deny from 20.201.28.151/32 Deny from 20.205.243.166/32 Deny from 20.87.245.0/32 … (6722 more lines)