This application serves as a proxy for HLS streams, Images and enabling secure access to media content.
- Enter valid Cloudflare API key and Account ID.
- Enable github workflows
- Run
deployworkflow in your forked repo actionshttps://github.com/[User-Name]/[Repo-Name]/actions/workflows/deploy.yml
- Setup wrangler on your system.
- Download the source code.
- Run
npm install - Run
npm run devorwrangler devin your terminal to start a development server - Open a browser tab at http://localhost:8787/ to see your worker in action
- Run
wrangler deployto publish your worker
/proxy- for HLS/cors- for Images/Web pages
Use the following format to access the proxy:
/proxy?url=<encoded_m3u8_url>&headers=<encoded_headers>
url: Base64-encoded M3U8 URL.headers: (Optional) Base64-encoded JSON string for custom headers.
btoa('http://example.com/stream.m3u8');btoa(JSON.stringify({ Referrer: 'https://anitaku.bz' }));/proxy?url=aHR0cDovL2V4YW1wbGUuY29tL3N0cmVhbS5tM3U4&headers=eyJBdXRob3JpemF0aW9uIjoiQmVhcmVyIHRva2VuIn0=