ip-blocklist

ip-blocklist is a skill for Claude Code, Codex from LuuOW/meridian-mcp. It costs 39 tokens per session (1,448 once invoked), scanned A, original, MIT.

A collection of examples for allowing or blocking network traffic by IP address. It covers Linux firewalls, Nginx, Cloudflare, and changing blocklists.

In plain words
What is it for?
Use it to block individual IPs or address ranges, allow trusted networks, log blocked requests, create expiring firewall entries, or configure proxy and Cloudflare rules.
Why use it?
It provides ready patterns for restricting unwanted traffic or limiting access to selected addresses and networks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to block individual IPs or address ranges, allow trusted networks, log blocked requests, create expiring firewall entries, or configure proxy and Cloudflare rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luuow/meridian-mcp/ip-blocklist
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LuuOW/meridian-mcp --skill ip-blocklist
Clone the repo
git clone --depth 1 https://github.com/LuuOW/meridian-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ip-blocklist

README.md
[![agentmods](https://agentmods.dev/badge/skills/luuow/meridian-mcp/ip-blocklist/github.svg)](https://agentmods.dev/skills/luuow/meridian-mcp/ip-blocklist)
Your own site
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/ip-blocklist"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/ip-blocklist/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ip-blocklist

Your own site · 80×15
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/ip-blocklist"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/ip-blocklist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,448 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01448
Opus 5.5 $0.00016 $0.00579
Sonnet 5.5 $0.00008 $0.00290
Haiku 4.5 $0.00004 $0.00145

Measured 3mo ago against content hash 5c850584e852, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ip-blocklist scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST \
skills/ip-blocklist/SKILL.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ip-blocklist

Fragments for IP-based access control. Use these patterns to restrict or block traffic at the network or proxy layer. Composable with firewall and rate-limiting skills.

iptables — Static Block/Allow

# Block a single IP
iptables -A INPUT -s 203.0.113.42 -j DROP

# Block a CIDR range
iptables -A INPUT -s 198.51.100.0/24 -j DROP

# Allow only specific IPs to a port (allowlist pattern)
iptables -A INPUT -p tcp --dport 5432 -s 10.8.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 5432 -j DROP           # drop all others

# Log before dropping (for audit trail)
iptables -A INPUT -s 203.0.113.42 -j LOG --log-prefix "BLOCKED-IP: "
iptables -A INPUT -s 203.0.113.42 -j DROP

# Persist
iptables-save > /etc/iptables/rules.v4

nftables — Dynamic Set-Based Blocklist

# /etc/nftables.conf — define a set, populate it dynamically

table inet filter {
  set blocklist {
    type ipv4_addr
    flags interval, timeout      # timeout: entries auto-expire
    timeout 24h                  # auto-remove after 24h
  }

  set allowlist {
    type ipv4_addr
    flags interval
    elements = { 10.8.0.0/24, 203.0.113.0/24 }  # static admin ranges
  }

  chain input {
    type filter hook input priority 0; policy drop;
    ip saddr @blocklist drop
    ip saddr @allowlist accept
    # ... other rules
  }
}
# Add to blocklist at runtime (no reload needed)
nft add element inet filter blocklist { 198.51.100.42 }
nft add element inet filter blocklist { 192.0.2.0/24 }

# Remove from blocklist
nft delete element inet filter blocklist { 198.51.100.42 }

# Inspect current set contents
nft list set inet filter blocklist

nginx — Geo-Based Access Control

# nginx.conf — http block
http {
    # Allowlist: only listed IPs allowed
    geo $allowed_ip {
        default         0;             # deny by default
        10.8.0.0/24     1;             # VPN subnet
        203.0.113.0/24  1;             # office range
        127.0.0.1       1;             # localhost
    }

    # Blocklist: listed IPs denied
    geo $blocked_ip {
        default         0;
        198.51.100.0/24 1;             # known bad range
        192.0.2.42      1;
    }
}

# server block — enforce
server {
    location /admin/ {
        if ($allowed_ip = 0) { return 403; }
        proxy_pass http://127.0.0.1:9002;
    }

    location / {
        if ($blocked_ip = 1) { return 403; }
        proxy_pass http://127.0.0.1:8080;
    }
}

Read the full file on GitHub · 173 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 173 lines · 39 tokens per session scan A 5c850584e852

Subscribe to this mod's changes

ip-blocklist is a skill published in the GitHub repository LuuOW/meridian-mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 1,448 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

ip-blocklist compared with skills from other repositories

ip-blocklist next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ip-blocklistLuuOW/meridian-mcpSkill01mo agoMITA39Claude Code, Codex
geo-schemazubair-trabzada/geo-seo-claudeSkill12kyesterdayMITA26Claude Code
cf-clicloudflare/skillsSkill3.5k5d agoApache-2.0A78Claude Code
press-media-relationsaaron-he-zhu/aaron-marketing-skillsSkill3.2kyesterdayApache-2.0A150Claude Code
launch-monitoraaron-he-zhu/aaron-marketing-skillsSkill3.2kyesterdayApache-2.0A183Claude Code
launch-tier-planneraaron-he-zhu/aaron-marketing-skillsSkill3.2kyesterdayApache-2.0A181Claude Code
story-bank-builderaaron-he-zhu/aaron-marketing-skillsSkill3.2kyesterdayApache-2.0A157Claude Code