D
D
Dmk2016-06-01 16:10:38
JavaScript
Dmk, 2016-06-01 16:10:38

How to hide links in html code?

Have a nice day!

Interested in such a question, how can I hide links from src, href, etc.

In more detail, it is necessary to hide the IP address of the camera, the video stream of which is translated via mjpeg into the img (src) tag.

The camera itself is password protected, but IP cameras are somehow reluctant to shine at all.

-----

And the question after that, is it expedient to just take jpeg from the camera, save it to the database and give it to users through the site on request from the database?

Simply, I tried to take a frame from the camera, save it to the site hosting and substitute it in img. But on local hosting (Windows) everything was fine, but after transferring to an external hosting (I don’t know for sure, some kind of Linux =) ) they started to pour through one broken picture. I sin on the file distribution of locks / access to files by the operating system.

I would be grateful for any lead.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-06-01
@alsopub

Your ip address will still be visible in the "Developer Tools" no matter how you hide it in html.
The real way to hide it is to make a proxy, for example nginx + proxy_pass, then the ip of the camera will not be visible anywhere, the ip of the server with nginx will be visible.
Glitches, probably due to the fact that files are both written and read at the same time. You can solve it by writing to files with different names and outputting only those that have already downloaded for sure. For example file1.jpg file2.jpg ... and the output file[n-1].jpg so that the current one (which is probably still being written) is not returned.
IMHO this option with a frame rate of more than 1 per minute is inappropriate.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question