After pilfering many .mov's by just viewing the source of an HTML file. I decided to try and find a way to "hide" the source of the .mov file. This is what I've got so far:
<html>
<head>
<style type="text/css">
div.mov {
margin: auto;
}
</style>
</head>
<body>
<div class="mov">
<object width="435" height="248"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="file.php">
<param name="controller" value="true">
<param name="autoplay" value="false">
<embed src="file.php" width="435" height="248"
autoplay="false" controller="true"
pluginspage="http://www.apple.com/quicktime/download/">
</embed>
</object>
</div>
</body>
</html>
All the above HTML is doing is referencing a php file instead of a .mov file. Nothing too spectacular there.
In file.php:
<?php
if (eregi('file.php', $_SERVER['PHP_SELF'])) {
header("HTTP/1.0 404 Not Found");
exit;
}else{
$qturl = "testing_movie.mov";
header('Content-type: video/quicktime');
@readfile($qturl);
exit;
}
?>
Everything worked fine until I threw in the eregi statement. I wanted to make sure that if anyone WAS trying to steal my movies by hitting the source direclty, that they received a 404 error.
The 404 portion works just fine, but now when I view the HTML from above, I get nothing.
Any Ideas?