Skip to content

Instantly share code, notes, and snippets.

@kotx
Last active January 7, 2025 01:25
Show Gist options
  • Save kotx/483fbdc411e766896704fc2e4ca4688d to your computer and use it in GitHub Desktop.
Save kotx/483fbdc411e766896704fc2e4ca4688d to your computer and use it in GitHub Desktop.
Cloudflare worker to send bad bots to
export default {
async fetch(request, env, ctx) {
const response = await fetch("https://cdn.yukata.dev/7cp001g.null"); // 10GB of zeroes gzipped
return new Response(response.body, {
headers: {
"Content-Encoding": "gzip",
"Content-Type": "text/plain; charset=utf-8"
},
encodeBody: "manual",
});
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment