API

Delete blocked IP

DELETEhttps://api.visitors.now/v1/project/blocked-ips/:ip

Removes a blocked IP address or IPv4 CIDR range from the project.

Request

index.ts
const ip = encodeURIComponent("198.51.100.0/24");

const res = await fetch(`https://api.visitors.now/v1/project/blocked-ips/${ip}`, {
  method: "DELETE",
  headers: { Authorization: `Bearer ${VISITORS_API_KEY}` },
});

const data = await res.json();

Response

{
  "blockedIps": ["203.0.113.10"]
}