Red Line #4HTTP 422 UnbilledPre-Egress Guard Zero Secret Leakage Zero CAPTCHA Bypass $0 on Fake-200 / Miss

SSRF Guard HTTP 422 Unbilled Protection for AI Scraping Agents

How src/ssrf_guard.py blocks loopback, RFC1918 private networks, link-local, CGNAT, cloud metadata (169.254.169.254), and non-http(s) URLs with unbilled HTTP 422 before outbound egress.

HTTP 422
Deterministic SSRF rejection code
0u ($0.00)
Caller charge on blocked SSRF probe
0 Egress
Upstream proxy calls made on blocked URL
100% Scanned
Every /v1/datafuel/scrape & MCP scrape call
Test this pipeline live in 5 seconds with zero signup.

Inspect redacted 18-provider telemetry via GET /v1/datafuel/pool or execute zero-secret REST & /mcp calls.

Try DataFuel Now → Read skill.md

Blocked Address Classes & Schemes (src/ssrf_guard.py)

Autonomous agents frequently scrape user-supplied URLs that can hide prompt-injected SSRF probes targeting localhost daemons or cloud metadata endpoints. DataFuel runs validate_public_url(url) before touching Register-Anything, ArchiveCache, or billing.

Blocked Target CategoryExample Inputs RejectedHTTP StatusUpstream EgressBilled Amount
Cloud instance metadatahttp://169.254.169.254/latest/meta-data/422Blocked (0 calls)0u ($0.00)
Loopback IPv4 / IPv6http://127.0.0.1:18793, http://[::1]:9050422Blocked (0 calls)0u ($0.00)
RFC1918 private networkshttp://10.0.0.1, http://172.16.0.5, http://192.168.1.1422Blocked (0 calls)0u ($0.00)
Carrier-grade NAT & reservedhttp://100.64.0.1, http://0.0.0.0422Blocked (0 calls)0u ($0.00)
Non-HTTP(S) URI schemesfile:///etc/passwd, gopher://..., ftp://...422Blocked (0 calls)0u ($0.00)

Why Unbilled 422 Protects Both Security and Prepaid Budgets

Billing on validation failures turns accidental or adversarial SSRF inputs into a denial-of-wallet attack. DataFuel raises SSRFBlockedError prior to ledger debit, returning structured redacted error JSON with billed_micros: 0.

Frequently Asked Questions

Can DataFuel be tricked into probing the local Register-Anything daemon on port 18793?
No. Loopback addresses including 127.0.0.1, localhost, and ::1 are unconditionally rejected by validate_public_url with HTTP 422 before egress.
Are blocked SSRF probes written to ArchiveCache?
Never. Blocked URLs fail pre-egress and leave zero cache entries and zero ledger debits.

Related FastMesh DataFuel Guides