Last active
January 7, 2025 01:25
-
-
Save kotx/483fbdc411e766896704fc2e4ca4688d to your computer and use it in GitHub Desktop.
Cloudflare worker to send bad bots to
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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