SSRF-Hardened Web & PDF Extraction API (HTTP 422 on Private/Metadata IPs, $0 Billed)
Protect cloud infrastructure from prompt-injected URLs: Harvest-Anything blocks localhost, RFC1918 private IPs, 169.254.169.254 metadata, and file:// schemes pre-fetch with HTTP 422 and $0 billed.
Why Existing Scrapers & Subscriptions Break Here
When autonomous AI agents pass user-supplied or web-scraped URLs into an extraction tool, prompt injection can trick naive scrapers into fetching http://169.254.169.254/latest/meta-data/ or internal admin ports.
Even worse, some APIs still charge per-request fees on security rejections or leak internal network timeouts in error traces.
Harvest-Anything validates hostnames, resolved IPs, and URL schemes pre-fetch—returning HTTP 422, zero network egress, and billed_micros: 0.
Verified Extraction Output Breakdown (Observed Receipt: 0 micros)
| Extracted Attribute | Observed Value / Outcome | Provenance / Line Ref | Confidence |
|---|---|---|---|
| Target URL | http://169.254.169.254/latest/meta-data/ | Cloud metadata IPv4 | 1.00 |
| HTTP Status Returned | 422 Unprocessable Entity | Blocked pre-fetch | 1.00 |
| zero_bill_reason | ssrf_blocked_422 | Zero network egress | 1.00 |
| billed_micros | $0.00 (0 micros) | Strict zero-loss guard | 1.00 |
Pricing Benchmark vs Incumbents
| Provider | Pricing Model | Verified Cost & Friction | Harvest-Anything Advantage |
|---|---|---|---|
| Harvest-Anything | Pay-per-verified-harvest (Creem $9/$29/$99/$299 packs, 0% treg hub commission) | $0.05 live / $0.005 recheck; $0 on fake-200, empty, or 422 | Deterministic JSON Schema, field confidence, 1-based line refs, Streamable MCP |
| Incumbent Benchmark | Annual seats, monthly floors, or metered raw proxy GBs | Apify ($19-$999/mo + Compute Units + proxy bandwidth); Bright Data ($250/100k dataset minimum) | Zero monthly minimum, zero sales gate, zero charge on soft-blocks |
Run via HTTP REST (POST /harvest)
curl -sS -X POST https://harvest.fastmesh.dev/harvest \
-H "Content-Type: application/json" \
-d '{"url": "http://169.254.169.254/latest/meta-data/", "mode": "auto"}'
Run via Native Streamable MCP (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "harvest_extract",
"arguments": {
"url": "http://169.254.169.254/latest/meta-data/",
"mode": "auto"
}
}
}
Run via Treg Hub (0% Seller Commission)
treg call harvest-anything --data '{"url": "http://169.254.169.254/latest/meta-data/", "mode": "auto"}'
Observed HarvestReceipt JSON Output
{
"ok": false,
"status_code": 422,
"mode": "auto",
"url": "http://169.254.169.254/latest/meta-data/",
"extracted": {},
"field_confidence": {},
"source_line_refs": {},
"schema_valid": true,
"cache_hit": false,
"cache_tier": "none",
"billed_micros": 0,
"zero_bill_reason": "ssrf_blocked_422",
"sha256_receipt": "506714d7ae8c701971804b255bb834e3bcb4f332d690cda1e68566fe1595d26b"
}
Frequently Asked Questions
Which IP ranges and schemes are blocked by the SSRF guard?
Loopback (127.0.0.1, ::1), RFC1918 private subnets (10/8, 172.16/12, 192.168/16), link-local/metadata (169.254.0.0/16), CGNAT, and non-http(s) schemes like file:// or gopher://.
Does an HTTP 422 SSRF rejection deduct any prepaid credits?
Never. billed_micros is strictly 0 and zero_bill_reason is set to ssrf_blocked_422.
Is the SSRF guard enforced in treg_hub as well as the HTTP server?
Yes. Both src/security.py and treg_hub/run.js enforce pre-fetch SSRF blocking.