Nginx設(shè)置只允許來(lái)自Cloudflare CDN的IP訪問(wèn)的方法
location / {
allow 131.0.72.0/22;
#allow fe80::21c:42ff:fe8f:dca6;支持ipv6訪問(wèn)
deny all;
}
參考
nginx 只允許cf訪問(wèn):https://www.bnxb.com/nginx/27638.html
關(guān)閉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設(shè)置方法:http://www.reibang.com/p/734ef8e5a712