Saltar al contenido
Skillpedia
Deploy y nube (DevOps)35 mil · #8023

implementing-ddos-mitigation-with-cloudflare

Qué hace

Esta herramienta te ayuda a proteger tu sitio web frente a ataques que intentan saturarlo y dejarlo fuera de servicio. Configura defensas automáticas y personalizadas usando Cloudflare.

Cuándo usarla

  • ✓Tu sitio web está recibiendo mucho tráfico inesperado.
  • ✓Quieres evitar ataques que hagan que tu sitio vaya lento o no esté disponible.
  • ✓Necesitas cumplir con las normativas de seguridad de tu negocio.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-ddos-mitigation-with-cloudflare/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Configura la protección contra ataques DDoS para mi sitio web usando Cloudflare.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La herramienta se conecta a Cloudflare y ajusta la configuración de seguridad. Activa protecciones automáticas contra distintos tipos de ataques y te permite crear reglas específicas para bloquear el tráfico malicioso.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

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:


…
Preguntas frecuentes

¿Qué son los ataques DDoS?

Son ataques que envían un volumen enorme de tráfico a un sitio web, con el objetivo de saturarlo y hacerlo inaccesible para los usuarios legítimos.

¿Qué es Cloudflare?

Es un servicio que actúa como intermediario entre los visitantes y tu sitio web, ofreciendo seguridad, rendimiento y fiabilidad.

¿Necesito conocimientos técnicos para usarla?

La herramienta simplifica el proceso, pero es útil tener una cuenta de Cloudflare y conocer la dirección IP de tu servidor.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
35 mil
Posición en el ranking
#8023
Licencia
Apache-2.0
Actualizada
31/8/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas