export default { async fetch(request) { const url = new URL(request.url); // Use URLSearchParams to safely check if the parameter "i" exists if (url.searchParams.has("i")) { return new Response("410 Gone - This page no longer exists.", { status: 410, headers: { "Content-Type": "text/plain" }, }); } // Allows all other traffic to go through to your website normally return fetch(request); }, };