تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

cloudflare-guard

بواسطة guifav

DevOps & Cloud
572التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Configures and manages Cloudflare DNS, caching, security rules, rate limiting, and Workers.

الوصف

ما الذي تفعله هذه المهارة

Manages Cloudflare DNS records, SSL/TLS settings, caching rules, rate limiting, and bot protection for web apps deployed on Vercel. Uses the Cloudflare API v4 directly via curl. Follows a mandatory plan-before-execute protocol to avoid downtime.

The mandatory planning protocol catches risky DNS and SSL changes before execution, reducing the chance of accidental downtime from misconfiguration.

متى تستخدمها

  • Setting up DNS for a new Vercel deployment
  • Purging CDN cache after a production release
  • Adding rate limits to API routes under traffic abuse
  • Enabling bot fight mode on a public-facing site
  • Troubleshooting 522 errors caused by wrong SSL mode

مثال على سير العمل

الإدخال

User asks: Set up Cloudflare for my new Vercel project at example.com

الوكيل
  1. 1

    Query existing DNS records and current SSL settings for the zone

  2. 2

    Add CNAME record pointing to cname.vercel-dns.com with proxy enabled

  3. 3

    Set SSL mode to Full (Strict) and enable Always Use HTTPS

  4. 4

    Create rate limiting rule for /api/* routes and enable Bot Fight Mode

  5. 5

    Set browser cache TTL and add page rule to aggressively cache _next/static/*

الإخراج

All 7 setup steps completed. DNS propagation may take up to 24 hours. SSL is strict, bot protection is active, and static assets are cached for 30 days.

المتطلبات

  • CLOUDFLARE_API_TOKEN environment variable
  • CLOUDFLARE_ZONE_ID environment variable
  • Cloudflare account with the target domain added

التثبيت

clawhub install guifav/cloudflare-guard

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط