Last update at :2024-07-13,Edit by888u
Set the website to only allow IP access from Cloudflare CDN. The main purpose is to prevent being scanned and reduce attacks.
In the website configuration file, add the following:
location / { allow 173.245.48.0/20; allow 103.21.244.0/22; allow 103.22.200.0/22; allow 103.31.4.0/22; allow 141.101.64.0/18; allow 108.162.192.0/18; allow 190.93.240.0/20; allow 188.114.96.0/20; allow 197.234.240.0/22; allow 198.41.128.0/17; allow 162.158.0.0/15; allow 104.16.0.0/12; allow 172.64.0.0/13; allow 131.0.72.0/22; deny all; }The above only adds IPv4. If you use IPv6, it is also recommended to add IPv6. If there is a new IP segment update, it will also be added to it.
Cloudflare CDN’s IP update address: https://www.cloudflare.com/ips/
Recommended site search: Ministry of Information Industry registration, enterprise virtual host, .net space, free permanent high-performance server rental server, cn domain name, Ministry of Industry and Information Technology registration website, free cloud server for individuals outside mainland China, registration, free domain name,
发表评论