Looking for a developer for hls cors proxy

embdmstr

New Member
2
2023
0
2,190
Hi, I'm looking for someone who can code a cors proxy for streaming m3u8 playlists. Either on cloudflare worker or dedicated server depending on what would be more cost effective. I want to play hls streams from other domains on my domain and want to be able to set custom referer and only allow custom domains to use this cors proxy.
example: my-cors-domain.com/?url=stream-on-another-domain.com/stream.m3u8

I can pay you in btc or monero and long-term partnership is possible.
Please PM me for more details. I have some example stream links prepared that I want to work.
 
6 comments
A reverse proxy doesn't need a CORS so long the base content has a CORS policy, you can enable CORS via .htaccess easily.

A reverse proxy can be done with this code in apache2 / httpd

Apache config:
<VirtualHost *:80>
  ProxyPreserveHost On
  ProxyPass / http://IP/
  ProxyPassReverse / http://IP/
</VirtualHost>

And a .htaccess can be simple like this:

HTTP:
<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>

If you're using cloudflare then you'll have your domain nulled by their service for streaming the following types: .mp4 .mkv .avi .mp3 .ogg .ts .ts2 and .FLAC I have tested these file extensions personally and can confirm they will not only throttle your domain but not take the throttle off, so you'll need to get creative for your streaming chunks.
 
Last edited:
I wasn't able to install it on my server to try.

Why not? It should work with the instructions listed in the repo as long as you're not trying to run it on an ancient version of Python. You can run python --version to check the version. If your server also has Python 2.7 installed you might need to use python3 --version instead and use pip3 instead of pip. Ideally you should be running Python 3.8 or higher.
 
Back
Top