If the built-in proxy is slow or hits limits, you can deploy your own dedicated proxy worker for free.
- Sign in to Cloudflare Dashboard.
- Go to Workers & Pages on the left sidebar.
- Click Create application → Create Worker.
- Name it (e.g. my-showbox-proxy) and click Deploy.
- Click Edit code, replace everything with the code below, and click Deploy.
export default {
async fetch(request) {
if (request.method === "OPTIONS") {
return new Response(null, { headers: { "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers": "*" }});
}
const url = new URL(request.url).searchParams.get("url");
if (!url) return new Response("Add ?url=", { status: 400 });
const req = new Request(url, request);
req.headers.set("origin", new URL(url).origin);
req.headers.set("referer", new URL(url).origin + "/");
const res = await fetch(req);
const newRes = new Response(res.body, res);
newRes.headers.set("Access-Control-Allow-Origin", "*");
return newRes;
}
}
6. Copy your Worker's URL and paste it into the Custom Proxy URL field.