Skip to content
Fourohtwo

fastx402.tools/ip-in-cidrs

Test one IPv4 or IPv6 address against a list of CIDR ranges and return which ranges contain it. Use it for allowlists, blocklists and firewall rule checks.

BaseUnchecked
GEThttps://fastx402.tools/ip-in-cidrs

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://fastx402.tools/ip-in-cidrs?ip=192.168.1.50&cidrs=10.0.0.0%2F8%2C+192.168.0.0%2F16%2C192.168.1.0%2F24");
console.log(await res.json());

Example input

{
  "ip": "192.168.1.50",
  "cidrs": "10.0.0.0/8, 192.168.0.0/16,192.168.1.0/24"
}

More from FastX402 Lab