cloudflare-block-countries SKILL.md skillA
cloudflare-block-countries from oleg-koval/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add oleg-koval/agent-skills/cloudflare-block-countries@git:20260828.aaaffd4Pins git:20260828.aaaffd4 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- oleg-koval/agent-skills
- Path
adapters/cursor/olko-web-ops/skills/cloudflare-block-countries/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260828.aaaffd4, committed Aug 28, 2026
- First version recorded
- Aug 24, 2026
- Size
- 5,412 bytes
- Repository stars
- 3
- License
- MIT
Block specific countries via Cloudflare WAF Custom Rules using the Cloudflare API. Use when user wants to geo-block traffic, block countries in Cloudflare, set up WAF country rules, or mentions blocking regions. Handles both creating new rulesets and updating existing ones.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
<!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
# Cloudflare Country Block via WAF Custom Rules
Block traffic from specific countries using Cloudflare WAF Custom Rules and the Cloudflare API.
## Prerequisites
- Cloudflare API Token with `Zone:Rulesets:Edit` permission
- Zone ID for the target domain
- `curl` and `jq` installed
## Workflow
### 1. Get Zone IDs
```bash
curl -s -X GET \
"https://api.cloudflare.com/client/v4/zones?account.id=YOUR_ACCOUNT_ID&status=active" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" | jq '.result[] | {name: .name, id: .id}'
```
### 2. Check Existing Custom Firewall Rulesets
```bash
curl -s -X GET \
"https://api.cloudflare.com/client/v4/zones/YOUR_ZONE_ID/rulesets" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" | \
jq '.result[] | select(.phase == "http_request_firewall_custom")'
```
If the output is empty: no existing ruleset. Go to **3a**. If a ruleset exists, note its `id` and go to **3b**.
### 3a. Create NEW Ruleset with Block Rule
```bash
curl -s -X POST \
"https://api.cloudflare.com/client/v4/zones/YOUR_ZONE_ID/rulesets" \
…Read the whole file at its exact version.
How to install
mdr add oleg-koval/agent-skills/cloudflare-block-countries@sha256:f30be6b6db1d8381The line at the top of this page pins the label git:20260828.aaaffd4, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_sqonezyxj35dn3p5)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Aug 24, 2026 and Aug 28, 2026, about one every 3 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260828.aaaffd4 latest | 2026-08-28 | aaaffd4 | 5,412 B | A | view · diff |
| git:20260824.c71bceb | 2026-08-24 | c71bceb | 5,415 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5412 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
oleg-koval/agent-skills · 3 stars · license MIT · pushed 2026-10-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_sqonezyxj35dn3p5 GET https://markdownregistry.com/api/v1/resolve?ref=oleg-koval/agent-skills/cloudflare-block-countries GET https://markdownregistry.com/api/v1/blob/f30be6b6db1d838144079e55b5157d0215354f17f4ceb7892a03f07f41a783c6
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from oleg-koval/agent-skills
Every file in oleg-koval/agent-skills