Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)35k · #8023

implementing-ddos-mitigation-with-cloudflare

Skill này làm gì

Công cụ này giúp bảo vệ website của bạn khỏi các cuộc tấn công cố làm quá tải và khiến website ngừng hoạt động. Nó thiết lập các biện pháp phòng thủ tự động và tùy chỉnh bằng Cloudflare.

Khi nào nên dùng

  • ✓Website của bạn đang nhận lượng truy cập lớn bất thường.
  • ✓Bạn muốn ngăn các cuộc tấn công làm website chậm hoặc không truy cập được.
  • ✓Bạn cần tuân thủ các quy định bảo mật đối với doanh nghiệp.

Liên kết skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-ddos-mitigation-with-cloudflare/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-ddos-mitigation-with-cloudflare/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thiết lập bảo vệ chống tấn công DDoS cho website của tôi bằng Cloudflare.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ kết nối với Cloudflare và điều chỉnh các cài đặt bảo mật. Nó bật các biện pháp bảo vệ tự động chống nhiều loại tấn công và cho phép tạo quy tắc riêng để chặn lưu lượng độc hại.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Implementing DDoS Mitigation with Cloudflare

Overview

Cloudflare provides multi-layer DDoS protection across its global network of over 300 data centers with 477+ Tbps of capacity. The platform protects against L3/4 volumetric attacks (SYN floods, UDP amplification, DNS reflection), protocol attacks (Ping of Death, Smurf), and L7 application-layer attacks (HTTP floods, Slowloris, cache-busting). Cloudflare's autonomous detection systems identify and mitigate attacks within approximately 3 seconds using traffic profiling, machine learning, and adaptive rulesets. This skill covers configuring Cloudflare's DDoS protection stack including managed rulesets, WAF rules, rate limiting, Bot Management, and origin server hardening.

When to Use

  • When deploying or configuring implementing ddos mitigation with cloudflare capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Cloudflare account (Pro plan minimum for WAF, Enterprise for Advanced DDoS)
  • Domain with DNS delegated to Cloudflare nameservers
  • Origin server IP address(es)
  • Understanding of normal traffic patterns and peak volumes
  • Cloudflare API token for automation

Core Concepts

DDoS Attack Categories

Layer Attack Type Examples Cloudflare Protection
L3/4 Volumetric SYN flood, UDP flood, DNS amplification Network-layer DDoS managed rules
L3/4 Protocol Ping of Death, Smurf, IP fragmentation Advanced TCP Protection
L7 Application HTTP flood, Slowloris, cache busting HTTP DDoS managed rules, WAF, Rate Limiting
DNS DNS-specific DNS query flood, NXDOMAIN attack Advanced DNS Protection

Cloudflare Protection Stack

Internet Traffic
     │
     ▼
┌─────────────────────────┐
│  Cloudflare Edge (PoP)  │
│  ┌───────────────────┐  │
│  │ L3/4 DDoS Mgd Rules│  │  ← Volumetric/Protocol mitigation
│  └───────────────────┘  │
│  ┌───────────────────┐  │
│  │ IP Access Rules    │  │  ← Country/ASN/IP blocks
│  └───────────────────┘  │
│  ┌───────────────────┐  │
│  │ Bot Management     │  │  ← Bot score, JS challenge
│  └───────────────────┘  │
│  ┌───────────────────┐  │
│  │ WAF Managed Rules  │  │  ← OWASP, Cloudflare, Custom
│  └───────────────────┘  │
│  ┌───────────────────┐  │
│  │ Rate Limiting      │  │  ← Request rate enforcement
│  └───────────────────┘  │
│  ┌───────────────────┐  │
│  │ HTTP DDoS Mgd Rules│  │  ← L7 flood detection
│  └───────────────────┘  │
└─────────────────────────┘
     │
     ▼
  Origin Server

Workflow

Step 1: Onboard Domain to Cloudflare

# Add domain via API
curl -X POST "https://api.cloudflare.com/client/v4/zones" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
    "name": "example.com",
    "type": "full",
    "plan": {"id": "enterprise"}
  }'

# Update DNS records (proxy enabled for DDoS protection)
curl -X POST "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
    "type": "A",
    "name": "example.com",
    "content": "203.0.113.50",
    "proxied": true,
    "ttl": 1
  }'

Step 2: Configure DDoS Managed Rulesets

HTTP DDoS Attack Protection override:

# List HTTP DDoS managed ruleset
curl -X GET "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/rulesets/phases/ddos_l7/entrypoint" \
  -H "Authorization: Bearer $CF_API_TOKEN"

# Override HTTP DDoS sensitivity and action
curl -X PUT "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/rulesets/phases/ddos_l7/entrypoint" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
    "rules": [{
      "action": "execute",
      "action_parameters": {
        "id": "4d21379b4f9f4bb088e0729962c8b3cf",
        "overrides": {
          "rules": [{
            "id": "fdfdac75430c4c47a422bdc024aab531",
            "sensitivity_level": "medium",
            "action": "block"
          }],
          "sensitivity_level": "high"
        }
      },
      "expression": "true"
    }]
  }'

Network-layer DDoS Protection override:


…
Câu hỏi thường gặp

DDoS là gì?

Đây là các cuộc tấn công gửi một lượng lưu lượng khổng lồ tới website để làm quá tải và khiến người dùng hợp pháp không truy cập được.

Cloudflare là gì?

Đây là dịch vụ đóng vai trò trung gian giữa khách truy cập và website của bạn, cung cấp bảo mật, hiệu năng và độ tin cậy.

Tôi có cần kiến thức kỹ thuật để dùng công cụ này không?

Công cụ giúp đơn giản hóa quy trình, nhưng có tài khoản Cloudflare và biết địa chỉ IP máy chủ của bạn sẽ hữu ích.

Chi tiết

Mô tả gốc của tác giả

Configure Cloudflare DDoS protection with managed rulesets, rate limiting, WAF rules, Bot Management, and origin protection to mitigate volumetric, protocol, and application-layer attacks.

repo: mukul975/Anthropic-Cybersecurity-Skills

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#8023
Giấy phép
Apache-2.0
Cập nhật
31/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự