Created
February 15, 2017 23:11
-
-
Save penguinpowernz/7486a10c411ea61e25e292c49b3c4e35 to your computer and use it in GitHub Desktop.
Camera streaming proxy so you can block your botnettable camera at the firewall and serve this through your own NGINX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Safe Cam!</title> | |
<meta http-equiv="refresh" content="60"/> | |
</head> | |
<body style="padding: 0px; margin: 0px;"> | |
<img id="MJPEG_streaming" src="http://<camip>/snapshot.cgi" align="CENTER"> | |
<script type="text/javascript"> | |
stretchImage = function() { | |
var image = document.getElementById("MJPEG_streaming"); | |
image.style.height = document.body.clientHeight; | |
image.style.width = document.body.clientWidth; | |
} | |
stretchImage(); | |
window.onresize = stretchImage; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment