Skip to content

Instantly share code, notes, and snippets.

@penguinpowernz
Created February 15, 2017 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save penguinpowernz/7486a10c411ea61e25e292c49b3c4e35 to your computer and use it in GitHub Desktop.
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
<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