See the Pen Check 000webhost subdomain by John Doe (@04) on CodePen.
ソースコード
Deno.serve(async (req: Request) => {
const r = await fetch(`https://${new URL(req.url).pathname.slice(1)}.000webhostapp.com/`)
return new Response(r.status === 404, {headers: {'Access-Control-Allow-Origin': '*'}})
});