W
W
windf1n2019-04-25 23:31:55
Network administration
windf1n, 2019-04-25 23:31:55

How to close access to ip for all but one?

In general, I broadcast the camera on the site. The site is located on the server to which the camera is connected. I created a stream through vlc player. And as a result, I got this html code:

<video id="video" src="http://x.x.x.x:8070/" autoplay="autoplay" style="width: 100%;height:400px;"> </video>

xxxx is a static ip. I opened ports in the router and in the firewall. In general, everything is fine, everything is broadcast. But I need the flow to be able to go only on the site. Those. people could only view the camera on the site. And now I can copy this html code given above and paste it into some html file. Thus, I can view the camera separately from the site. We need to prevent this, throw ideas.
Addition: I think now the request goes by the client to the server. The server needs to talk to itself. Those. You need to somehow implement this not directly through html.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Ronald McDonald, 2019-04-25
@Zoominger

Allow in the firewall of your router access to this IP only from the server where the site is hosted.

S
Stalker_RED, 2019-04-26
@Stalker_RED

so that from the outside it was impossible to view?
Unless the player is encrypted, and the keys are given out only to those who have visited the site. And change them periodically.
Do you arrange paid streaming there, or something like that? There is actually a special software for this.

I
index0h, 2019-04-26
@index0h

Google on content security policy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question