An HTML-only Bluesky frontend

these bots are awful

+10 -1
+10 -1
main.js
··· 9 9 Deno.serve(async (req) => { 10 10 // TEMPORARY: FOR BOT DETECTION ONLY 11 11 const headers = new Headers(req.headers); 12 - console.log(headers.get("user-agent")); 12 + const ua = headers.get("user-agent"); 13 + 14 + if ( 15 + ua.includes("amazon") || 16 + ua.includes("facebook") || 17 + ua.includes("Bytespider") || 18 + ua.includes("bot") 19 + ) { 20 + return new Response("GO AWAY", {status: 403}); 21 + } 13 22 14 23 const url = new URL(req.url); 15 24 const path = url.pathname;