Amazon CloudFront IP ranges
- IPv4 ranges
- 217
- IPv6 ranges
- 0
- Last change
- 06.12.2026
- Last check
- 06.12.2026
One range per line, IPv4 first, then IPv6.
Add the lines to a server or location block. The last line blocks every other address.
Add the lines to an .htaccess file or a Directory block. Access is allowed only from the addresses in the list.
The rules allow TCP connections to ports 80 and 443 from the addresses in the list, with iptables and ip6tables.
The rules allow TCP connections to ports 80 and 443 from the addresses in the list. IPv6 ranges work when IPV6=yes is set in /etc/default/ufw.
The commands create a separate zone named cloudfront, allow TCP connections to ports 80 and 443 in it from the addresses in the list, and reload the configuration.
Add the lines to /etc/csf/csf.allow and restart the firewall with csf -r. The lines allow TCP connections to ports 80 and 443, and IPv6 ranges work when the IPV6 option is enabled in csf.conf.
The rules allow TCP connections to ports 80 and 443 from the addresses in the list. The inet filter table and the input chain must already exist.
3.10.17.128/25
3.11.53.0/24
3.29.40.64/26
3.29.40.128/26
3.29.40.192/26
3.29.57.0/26
3.35.130.128/25
3.101.158.0/23
3.107.43.128/25
3.107.44.0/25
3.107.44.128/25
3.128.93.0/24
3.134.215.0/24
3.146.232.0/22
3.147.164.0/22
3.147.244.0/22
3.160.0.0/14
3.164.0.0/18
3.164.64.0/18
3.164.128.0/17
3.165.0.0/16
3.166.0.0/15
3.168.0.0/14
3.172.0.0/18
3.172.64.0/18
3.173.0.0/17
3.173.128.0/18
3.173.192.0/18
3.174.0.0/15
3.231.2.0/25
3.234.232.224/27
3.236.48.0/23
3.236.169.192/26
13.32.0.0/15
13.35.0.0/16
13.54.63.128/26
13.59.250.0/26
13.113.196.64/26
13.113.203.0/24
13.124.199.0/24
13.134.24.0/23
13.134.94.0/23
13.203.133.0/26
13.210.67.128/26
13.224.0.0/14
13.228.69.0/24
13.233.177.192/26
13.249.0.0/16
15.158.0.0/16
15.188.184.0/24
15.207.13.128/25
15.207.213.128/25
18.64.0.0/14
18.68.0.0/16
18.154.0.0/15
18.160.0.0/15
18.164.0.0/15
18.172.0.0/15
18.175.65.0/24
18.175.66.0/24
18.175.67.0/24
18.192.142.0/23
18.199.68.0/22
18.199.72.0/22
18.199.76.0/22
18.200.212.0/23
18.216.170.128/25
18.229.220.192/26
18.230.229.0/24
18.230.230.0/25
18.238.0.0/15
18.244.0.0/15
23.91.0.0/19
23.228.212.0/24
23.228.213.0/24
23.228.214.0/24
23.228.220.0/24
23.228.221.0/24
23.228.222.0/24
23.228.223.0/24
23.228.244.0/24
23.228.246.0/24
23.228.247.0/24
23.228.248.0/24
23.228.249.0/24
23.228.250.0/24
23.228.251.0/24
23.234.192.0/18
24.110.32.0/19
24.110.128.0/17
34.195.252.0/24
34.216.51.0/25
34.223.12.224/27
34.223.80.192/26
34.226.14.0/24
35.93.168.0/23
35.93.170.0/23
35.93.172.0/23
35.158.136.0/24
35.162.63.192/26
35.167.191.128/26
36.103.232.0/25
36.103.232.128/26
43.218.56.64/26
43.218.56.128/26
43.218.56.192/26
43.218.71.0/26
44.220.194.0/23
44.220.196.0/23
44.220.198.0/23
44.220.200.0/23
44.220.202.0/23
44.222.66.0/24
44.227.178.0/24
44.234.90.252/30
44.234.108.128/25
47.129.82.0/24
47.129.83.0/24
47.129.84.0/24
51.44.234.0/23
51.44.236.0/23
51.44.238.0/23
51.72.40.128/28
51.72.40.144/28
51.72.96.0/23
51.74.20.0/24
51.74.21.0/24
51.74.22.0/24
51.74.192.0/18
52.15.127.128/26
52.46.0.0/18
52.47.139.0/24
52.52.191.128/26
52.56.127.0/25
52.57.254.0/24
52.66.194.128/26
52.78.247.128/26
52.82.128.0/19
52.84.0.0/15
52.124.128.0/17
52.199.127.192/26
52.212.248.0/26
52.220.191.0/26
52.222.128.0/17
54.182.0.0/16
54.192.0.0/16
54.230.0.0/17
54.230.128.0/18
54.230.200.0/21
54.230.208.0/20
54.230.224.0/19
54.233.255.128/26
54.239.128.0/18
54.239.192.0/19
54.240.128.0/18
56.125.46.0/24
56.125.47.0/32
56.125.48.0/24
57.182.253.0/24
57.183.42.0/25
58.254.138.0/25
58.254.138.128/26
64.252.64.0/18
64.252.128.0/18
65.8.0.0/16
65.9.0.0/17
65.9.128.0/18
70.132.0.0/18
71.152.0.0/17
99.79.169.0/24
99.84.0.0/16
99.86.0.0/16
108.138.0.0/15
108.156.0.0/14
111.13.171.128/26
111.13.171.192/26
111.13.185.32/27
111.13.185.64/27
116.129.226.0/25
116.129.226.128/26
118.193.97.64/26
118.193.97.128/25
119.147.182.0/25
119.147.182.128/26
120.52.12.64/26
120.52.22.96/27
120.52.39.128/27
120.52.153.192/26
120.232.236.0/25
120.232.236.128/26
120.253.240.192/26
120.253.241.160/27
120.253.245.128/26
120.253.245.192/27
130.176.0.0/17
130.176.128.0/18
130.176.192.0/19
130.176.224.0/20
143.204.0.0/16
144.220.0.0/16
180.163.57.0/25
180.163.57.128/26
204.246.164.0/22
204.246.168.0/22
204.246.172.0/24
204.246.173.0/24
204.246.174.0/23
204.246.176.0/20
205.251.202.0/23
205.251.204.0/23
205.251.206.0/23
205.251.208.0/20
205.251.249.0/24
205.251.250.0/23
205.251.252.0/23
205.251.254.0/24
216.137.32.0/19Breakdown by part (2 parts)
The number of ranges in each part of the list, as tagged in the official file.
| Part | IPv4 | IPv6 |
|---|---|---|
| CLOUDFRONT_GLOBAL_IP_LIST | 117 | 0 |
| CLOUDFRONT_REGIONAL_EDGE_IP_LIST | 100 | 0 |
Why you need the CloudFront addresses
When a site sits behind Amazon CloudFront, the server receives requests from CloudFront servers. The list has two parts: CLOUDFRONT_GLOBAL_IP_LIST, the addresses of the edge servers, and CLOUDFRONT_REGIONAL_EDGE_IP_LIST, the addresses of the regional cache layer. To avoid blocking legitimate requests, allow both parts together in your firewall.
The visitor IP behind CloudFront
CloudFront passes the visitor's address to the origin server in the X-Forwarded-For header. When the visitor sends this header themselves, CloudFront appends the real address to the end of the list in the header. So in nginx, also turn on real_ip_recursive, and the module skips the trusted CloudFront addresses from the end and takes the address before them. Add a set_real_ip_from line for each range in the list:
set_real_ip_from 3.10.17.128/25;
set_real_ip_from 3.11.53.0/24;
set_real_ip_from 3.29.40.64/26;
# ...
real_ip_header X-Forwarded-For;
real_ip_recursive on;- This list is published by Amazon CloudFront in an official file, and we check it every week. The service is not affiliated with ErezNet.
- On a Linux VPS, you get full root access and configure the firewall and the web server yourself with these lists.
Amazon CloudFront IP ranges FAQ
How do I allow access to my server only through Amazon CloudFront?
Add a rule to your server's firewall that allows ports 80 and 443 only for the addresses in the list, and block all other addresses. The ready-made formats on this page, such as nginx, iptables, UFW, and firewalld, save you the work. When the list changes, update your rules too.
How do I show the real visitor IP behind Amazon CloudFront?
The server receives requests from the Amazon CloudFront addresses, and the visitor's address arrives in an HTTP header. Set the addresses in the list as trusted, for example in the nginx realip module or in Apache mod_remoteip, and your logs and site show the visitor's address.
How often is the list on this page updated?
We check the official Amazon CloudFront file once a week and update the page when something changes. The date of the last check is at the top of the page, and the recent changes are at the bottom.