SafeFetch API scans web pages for prompt injection before AI agents read them
A new API called SafeFetch allows AI agents to check whether a webpage is safe before feeding its content into a language model's context window. The service fetches a URL server-side, strips concealed markup from visible content, and scans both layers for eleven known prompt-injection techniques. It returns a sanitized text payload alongside a three-tier verdict — SAFE, REVIEW, or BLOCK — based on where suspicious content is found and how severe the risk is. Crucially, hidden or commented-out text is weighted far more heavily than visible content, since concealment is treated as the primary indicator of malicious intent. The service requires no account or API key and charges $0.01 USDC per call, settled on-chain via the x402 payment protocol on Base mainnet.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in