spoof user agent to firefox 143 on linux to bypass instagram bot protection

This commit is contained in:
m5r
2025-09-25 19:14:35 +02:00
parent b4b89cb0c0
commit 2219e72bd2
2 changed files with 24 additions and 10 deletions

View File

@@ -8,15 +8,15 @@ type Env = {
export { RulesCache };
export default {
async fetch(request, env, ctx): Promise<Response> {
async fetch(request, env, ctx) {
if (request.method !== "GET" && request.method !== "DELETE") {
return new Response("Method not allowed", {
status: 405,
headers: {
"Allow": "GET, DELETE",
Allow: "GET, DELETE",
"Content-Type": "text/plain",
"Access-Control-Allow-Origin": "*",
}
},
});
}