https://api.visitors.now/v1/project/blocked-pathnamesBlocks a pathname from being tracked.
const res = await fetch("https://api.visitors.now/v1/project/blocked-pathnames", {
method: "POST",
headers: {
Authorization: `Bearer ${VISITORS_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
pathname: "/admin/*",
}),
});
const data = await res.json();Pathname to block. Must start with /.
{
"blockedPathnames": ["/admin/*"]
}