FanCode Stream Proxy — Cloudflare Workers ========================================== Routes: GET /playlist.m3u8 Fetches and rewrites the Premium Plugx FanCode playlist. All stream URLs are rewritten to proxy through this worker. Drop this URL directly into any IPTV client or player. GET /stream?url= Proxies an HLS master or variant playlist. Attaches Referer, Origin, User-Agent on the upstream request. Rewrites child URIs to route segments through /seg. GET /seg?url= Proxies a TS or fMP4 segment with full header passthrough. Supports Range requests (byte-range streaming). GET /img?url= Proxies tvg-logo images from fancode.com. Required upstream headers (attached automatically): Referer: https://www.fancode.com/ Origin: https://www.fancode.com User-Agent: Mozilla/5.0 (Linux; Android 16; Pixel 10) AppleWebKit/537.36 ... Playlist URL for IPTV clients: https://.workers.dev/playlist.m3u8