type
status
date
slug
summary
tags
category
icon
password
我收集了所有中国大陆IDC的ASN,并把它们写成了表达式,只需要简单添加一下规则就可以一键拉黑所有ASN。
方法如下:
1.登录到cloudflare dashboard
2.找到相应的域名,点进去
3.单击security-WAF-custom rules-create rule
4.在Rule name (required)中为规则取一个名字,例如IDC ASN
5.找到页面右下角的 Edit expression 并单击
6.将下方规则原封不动粘贴进去
7.在 Choose action 中,选择block
8.在 Place at Select order: 中选择 first
9.单击下方的 deploy 按钮
这样就创建成功一条规则了,以后也可以按需修改或者添加更多ASN。
规则如下:
- Author:小星星
- URL:http://preview.tangly1024.com/article/cloudflare
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!