| Posted by: teddles - 02 October 2025 16:25:54 |
|---|
| hello I want to block tencent (ask for confirmation it is not a robot) in my cloudflare account |
| Posted by: sirclesadmin - 02 October 2025 18:13:47 |
|---|
|
You can effectively block traffic originating from Tencent's networks using a Cloudflare WAF Custom Rule (formerly known as Firewall Rules) based on their Autonomous System Number (ASN). Tencent has multiple ASNs, but the most common one associated with their general network/cloud services that often generate bot traffic is AS45090. Another frequently mentioned one is AS132203. I recommend using a Challenge action first to avoid accidentally blocking legitimate users, but you can set the action to Block. Here are the steps: 1. Create a WAF Custom Rule
2. Define the ExpressionIn the When incoming requests match... section, you will build the expression to target Tencent's network.
3. Choose an ActionThis step determines what happens to the traffic coming from those ASNs.
The rule will immediately go into effect, and any requests originating from those specific Tencent ASNs will be blocked or challenged according to your setting. Alternative: Block AI CrawlersCloudflare also offers a dedicated feature for blocking known AI bots (which may include some Tencent-related crawlers if they are known for AI scraping).
|
| Posted by: sirclesadmin - 02 October 2025 18:14:35 |
|---|
|
That's completely fine. If you don't have the WAF Custom Rules option (which typically requires a Pro plan or higher), you will need to use the older, more foundational security feature called IP Access Rules. IP Access Rules are available on all Cloudflare plans, including the Free plan, and they allow you to block traffic based on ASN (Autonomous System Number). Here is how to set up the block using IP Access Rules: 1. Identify the Tencent ASNsTencent's networks are primarily identified by a couple of ASNs. You will want to block the most common ones associated with cloud/bot traffic:
2. Create the IP Access Rules
Your site will now immediately block or challenge all traffic originating from those specific Tencent networks. Important Considerations:
|
| Posted by: teddles - 02 October 2025 18:15:39 |
|---|
| I cannot see these options... [attach]107[/attach] |
| Posted by: sirclesadmin - 02 October 2025 18:16:03 | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Thank you for sharing the screenshot. That confirms you are on a plan (likely the Free plan) where the WAF Custom Rules feature is not enabled by default, which is why it's prompting you to "Purchase add-on." However, you can still block traffic by ASN using the dedicated, free tool called IP Access Rules. Cloudflare sometimes hides the menu item when you don't have an active rule, but you can usually find it under the Tools tab of the WAF section. Here is the revised, correct navigation path to find and use IP Access Rules to block Tencent: 1. Find the IP Access Rules Tool
2. Create the Blocking RulesOnce you are on the IP Access Rules page (or Tools tab), you will see a section where you can add new rules. You will need to create a separate rule for each Tencent ASN (Autonomous System Number). Use the following ASNs for Tencent:
Recommended Action:
After you enter the details for each ASN, click Add to deploy the rule immediately. Alternative Free ProtectionIf you still can't find the IP Access Rules tool, make sure you have the following general security features enabled, which are available on the Free plan:
|
| Posted by: teddles - 02 October 2025 18:16:39 |
|---|
| where is 'security'? |
| Posted by: sirclesadmin - 02 October 2025 18:17:02 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
I see the issue! Based on your screenshot, you are in the new dashboard layout. The main "Security" section on the left-hand navigation menu is gone in this layout. It has been replaced by two main areas:
To find the tool you need (IP Access Rules), you need to navigate within the WAF area, but specifically the Tools section, which is available even on the Free plan. Here is the exact path based on what is visible in your screenshot: Step 1: Navigate to WAF Tools
Step 2: Use IP Access Rules to Block TencentThe IP Access Rules section should be visible in the Tools tab. This is a foundational feature available on all plans.
This action is effective immediately and will prevent traffic from those specific Tencent networks from reaching your site. |