Nginx设置只允许来自Cloudflare CDN的IP访问的方法
location / {
allow 131.0.72.0/22;
#allow fe80::21c:42ff:fe8f:dca6;支持ipv6访问
deny all;
}
参考
nginx 只允许cf访问:https://www.bnxb.com/nginx/27638.html
关闭ufw https://blog.csdn.net/harbor1981/article/details/82787619
禁止ipv4 ping:https://www.yunbook.vip/post/1543416159132.html
禁止ipv6 ping:https://www.v2ex.com/t/210897
nginx设置方法:https://www.jianshu.com/p/734ef8e5a712