B
B
bozuriciyu2019-09-14 14:28:44
Video
bozuriciyu, 2019-09-14 14:28:44

How to bypass protection and use a video from a third-party resource on your site?

A third-party resource gives video by URL like

https://server111.somecdn.com/aaa/bbb/ccc/445401.mp4

I can freely open this video in an empty tab. But when inserting this url into the video src on your site, the server returns a 403 error (not CORS).
Poking around, I determined that the server just checks the Referer. Those. if you substitute the desired referrer, then the video is given.
As far as I understand, it is not possible to change the Referer from the client's web browser (the security of the browser is triggered). What are the options then? Maybe there are ways to proxy this content through your server, and then replace it there? What are the solutions to this situation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rPman, 2019-09-14
@bozuriciyu

yes, a regular reverse proxy, for example based on nginx, but all traffic will go through it (i.e. one way and the other)

X
xmoonlight, 2019-09-14
@xmoonlight

You can also try the fetch() variant ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question