Feb 112019
 

Manchmal möchte man auf einer Website Filme zeigen, jedoch das Herunterladen dieser weitgehend erschweren.

Hier ein kurzes PHP-Script, welches alle Videos aus dem Unterverzeichnis “hiddenvideos” (inkl. eventueller Unterverzeichnisse) auflistet und mittels des HTML5-Video-Tags abspielt.

Der Download der Video-Files wird erschwert, indem der Verzeichnisname “hiddenvideos” weitgehend verschleiert wird. Dies ist naturgemäß mit einfachen Mitteln zu umgehen, jedoch werden die meisten Benutzer hierdurch hinreichend abgeschreckt sein.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html lang="de" dir="ltr" oncontextmenu="return false">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<SCRIPT LANGUAGE="JavaScript">
<!--
var _0x32a4=['addEventListener','contextmenu','preventDefault','keydown','ctrlKey','shiftKey','keyCode','platform','match','Mac','metaKey','stopPropagation','event','cancelBubble'];(function(_0x3efb9c,_0x1bb7be){var _0x2b669a=function(_0x5ba958){while(--_0x5ba958){_0x3efb9c['push'](_0x3efb9c['shift']());}};_0x2b669a(++_0x1bb7be);}(_0x32a4,0x70));var _0x3714=function(_0x224b25,_0x5b6386){_0x224b25=_0x224b25-0x0;var _0x42bc1a=_0x32a4[_0x224b25];return _0x42bc1a;};window['onload']=function(){document[_0x3714('0x0')](_0x3714('0x1'),function(_0x2b760b){_0x2b760b[_0x3714('0x2')]();},![]);document[_0x3714('0x0')](_0x3714('0x3'),function(_0x380216){if(_0x380216[_0x3714('0x4')]&&_0x380216[_0x3714('0x5')]&&_0x380216['keyCode']==0x49){_0x3bac0c(_0x380216);}if(_0x380216[_0x3714('0x4')]&&_0x380216['shiftKey']&&_0x380216[_0x3714('0x6')]==0x4a){_0x3bac0c(_0x380216);}if(_0x380216[_0x3714('0x6')]==0x53&&(navigator[_0x3714('0x7')][_0x3714('0x8')](_0x3714('0x9'))?_0x380216[_0x3714('0xa')]:_0x380216[_0x3714('0x4')])){_0x3bac0c(_0x380216);}if(_0x380216[_0x3714('0x4')]&&_0x380216[_0x3714('0x6')]==0x55){_0x3bac0c(_0x380216);}if(event[_0x3714('0x6')]==0x7b){_0x3bac0c(_0x380216);}},![]);function _0x3bac0c(_0x58f252){if(_0x58f252[_0x3714('0xb')]){_0x58f252[_0x3714('0xb')]();}else if(window['event']){window[_0x3714('0xc')][_0x3714('0xd')]=!![];}_0x58f252[_0x3714('0x2')]();return![];}};
var _0x373a=['oncontextmenu'];(function(_0x1116ef,_0x2071ed){var _0x151649=function(_0x5c6465){while(--_0x5c6465){_0x1116ef['push'](_0x1116ef['shift']());}};_0x151649(++_0x2071ed);}(_0x373a,0x153));var _0x5c44=function(_0x35a5bf,_0x2895e1){_0x35a5bf=_0x35a5bf-0x0;var _0x25c929=_0x373a[_0x35a5bf];return _0x25c929;};document[_0x5c44('0x0')]=function(_0x47a0e3){return![];};
var _0x1fd5=['\x5a\x57\x4e\x6f\x62\x79\x41\x69\x50\x48\x4e\x76\x64\x58\x4a\x6a\x5a\x53\x42\x7a\x63\x6d\x4d\x39\x49\x6d\x68\x70\x5a\x47\x52\x6c\x62\x6e\x5a\x70\x5a\x47\x56\x76\x63\x79\x38\x3d'];(function(_0x2c2066,_0x3d678e){var _0x46f6fc=function(_0x41655d){while(--_0x41655d){_0x2c2066['push'](_0x2c2066['shift']());}};var _0x5c2971=function(){var _0x5da618={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x31d9c7,_0x4dddb5,_0x36cf70,_0x3d1dab){_0x3d1dab=_0x3d1dab||{};var _0x2bb987=_0x4dddb5+'='+_0x36cf70;var _0x35235c=0x0;for(var _0x35235c=0x0,_0x275802=_0x31d9c7['length'];_0x35235c<_0x275802;_0x35235c++){var _0x18622f=_0x31d9c7[_0x35235c];_0x2bb987+=';\x20'+_0x18622f;var _0x174b05=_0x31d9c7[_0x18622f];_0x31d9c7['push'](_0x174b05);_0x275802=_0x31d9c7['length'];if(_0x174b05!==!![]){_0x2bb987+='='+_0x174b05;}}_0x3d1dab['cookie']=_0x2bb987;},'removeCookie':function(){return'dev';},'getCookie':function(_0x63c71f,_0x443c00){_0x63c71f=_0x63c71f||function(_0x389047){return _0x389047;};var _0x3b72f1=_0x63c71f(new RegExp('(?:^|;\x20)'+_0x443c00['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)'));var _0x28b3d2=function(_0x487e24,_0x3a7ccf){_0x487e24(++_0x3a7ccf);};_0x28b3d2(_0x46f6fc,_0x3d678e);return _0x3b72f1?decodeURIComponent(_0x3b72f1[0x1]):undefined;}};var _0x36d9ed=function(){var _0x4144ab=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4144ab['test'](_0x5da618['removeCookie']['toString']());};_0x5da618['updateCookie']=_0x36d9ed;var _0x545ff3='';var _0x126b93=_0x5da618['updateCookie']();if(!_0x126b93){_0x5da618['setCookie'](['*'],'counter',0x1);}else if(_0x126b93){_0x545ff3=_0x5da618['getCookie'](null,'counter');}else{_0x5da618['removeCookie']();}};_0x5c2971();}(_0x1fd5,0x12f));var _0x581a=function(_0xb9d11d,_0x5244c3){_0xb9d11d=_0xb9d11d-0x0;var _0x5663e0=_0x1fd5[_0xb9d11d];if(_0x581a['zakTTH']===undefined){(function(){var _0x7ed040=function(){var _0x56884d;try{_0x56884d=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');')();}catch(_0x3e0b7d){_0x56884d=window;}return _0x56884d;};var _0x2c5f32=_0x7ed040();var _0x5b77b6='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x2c5f32['atob']||(_0x2c5f32['atob']=function(_0x1141af){var _0x66f097=String(_0x1141af)['replace'](/=+$/,'');for(var _0x3e6c7c=0x0,_0x3384cd,_0x158e9f,_0x4616a7=0x0,_0x53a4f5='';_0x158e9f=_0x66f097['charAt'](_0x4616a7++);~_0x158e9f&&(_0x3384cd=_0x3e6c7c%0x4?_0x3384cd*0x40+_0x158e9f:_0x158e9f,_0x3e6c7c++%0x4)?_0x53a4f5+=String['fromCharCode'](0xff&_0x3384cd>>(-0x2*_0x3e6c7c&0x6)):0x0){_0x158e9f=_0x5b77b6['indexOf'](_0x158e9f);}return _0x53a4f5;});}());_0x581a['WaRggn']=function(_0x4f56fe){var _0x57acd0=atob(_0x4f56fe);var _0x50af9b=[];for(var _0x408a98=0x0,_0x556677=_0x57acd0['length'];_0x408a98<_0x556677;_0x408a98++){_0x50af9b+='%'+('00'+_0x57acd0['charCodeAt'](_0x408a98)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x50af9b);};_0x581a['QDkCGD']={};_0x581a['zakTTH']=!![];}var _0x46dafd=_0x581a['QDkCGD'][_0xb9d11d];if(_0x46dafd===undefined){var _0x4d6b5a=function(_0x5e3c9b){this['SJSovL']=_0x5e3c9b;this['JoDHfg']=[0x1,0x0,0x0];this['yZdMbV']=function(){return'newState';};this['OWzMgs']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*';this['DzDFtG']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4d6b5a['prototype']['TSBngH']=function(){var _0xfb1064=new RegExp(this['OWzMgs']+this['DzDFtG']);var _0xa1a64f=_0xfb1064['test'](this['yZdMbV']['toString']())?--this['JoDHfg'][0x1]:--this['JoDHfg'][0x0];return this['YuiMrt'](_0xa1a64f);};_0x4d6b5a['prototype']['YuiMrt']=function(_0x2320ea){if(!Boolean(~_0x2320ea)){return _0x2320ea;}return this['jQJwXX'](this['SJSovL']);};_0x4d6b5a['prototype']['jQJwXX']=function(_0x199f80){for(var _0x144c84=0x0,_0x37efa3=this['JoDHfg']['length'];_0x144c84<_0x37efa3;_0x144c84++){this['JoDHfg']['push'](Math['round'](Math['random']()));_0x37efa3=this['JoDHfg']['length'];}return _0x199f80(this['JoDHfg'][0x0]);};new _0x4d6b5a(_0x581a)['TSBngH']();_0x5663e0=_0x581a['WaRggn'](_0x5663e0);_0x581a['QDkCGD'][_0xb9d11d]=_0x5663e0;}else{_0x5663e0=_0x46dafd;}return _0x5663e0;};var _0x5ad047=function(){var _0x7897d3=!![];return function(_0x370059,_0x532af1){var _0x1564ba=_0x7897d3?function(){if(_0x532af1){var _0x39d214=_0x532af1['apply'](_0x370059,arguments);_0x532af1=null;return _0x39d214;}}:function(){};_0x7897d3=![];return _0x1564ba;};}();var _0x18e42a=_0x5ad047(this,function(){var _0x4331e3=function(){return'\x64\x65\x76';},_0x313845=function(){return'\x77\x69\x6e\x64\x6f\x77';};var _0x1a39b4=function(){var _0x1be5ac=new RegExp('\x5c\x77\x2b\x20\x2a\x5c\x28\x5c\x29\x20\x2a\x7b\x5c\x77\x2b\x20\x2a\x5b\x27\x7c\x22\x5d\x2e\x2b\x5b\x27\x7c\x22\x5d\x3b\x3f\x20\x2a\x7d');return!_0x1be5ac['\x74\x65\x73\x74'](_0x4331e3['\x74\x6f\x53\x74\x72\x69\x6e\x67']());};var _0x5e3b0f=function(){var _0x263edb=new RegExp('\x28\x5c\x5c\x5b\x78\x7c\x75\x5d\x28\x5c\x77\x29\x7b\x32\x2c\x34\x7d\x29\x2b');return _0x263edb['\x74\x65\x73\x74'](_0x313845['\x74\x6f\x53\x74\x72\x69\x6e\x67']());};var _0x46840f=function(_0xc7a584){var _0x1ad9df=~-0x1>>0x1+0xff%0x0;if(_0xc7a584['\x69\x6e\x64\x65\x78\x4f\x66']('\x69'===_0x1ad9df)){_0x39bd2c(_0xc7a584);}};var _0x39bd2c=function(_0x58cb41){var _0x32ff18=~-0x4>>0x1+0xff%0x0;if(_0x58cb41['\x69\x6e\x64\x65\x78\x4f\x66']((!![]+'')[0x3])!==_0x32ff18){_0x46840f(_0x58cb41);}};if(!_0x1a39b4()){if(!_0x5e3b0f()){_0x46840f('\x69\x6e\x64\u0435\x78\x4f\x66');}else{_0x46840f('\x69\x6e\x64\x65\x78\x4f\x66');}}else{_0x46840f('\x69\x6e\x64\u0435\x78\x4f\x66');}});_0x18e42a();gpa=_0x581a('0x0');
// -->
</SCRIPT>
<STYLE type="text/css">
#footer { font-size:0.6em; }
</STYLE>
</head>
<body oncontextmenu="return false;" style="font-size:1.8em;">

<?php
if(!isset($_GET['p']))
{
echo "<h2>Verf&uuml;gbare Videos</h2>";
eval(str_rot13(gzinflate(str_rot13(base64_decode('LUjHEoQ4Dv2aqZm9kVDtCZoMWs6XLWXOma9f98xDJNnWkyw9yXgzPn/tw5l5z0utf1pwuRLY/5ZoQZf1r2956+L5SvhG/Vd1mSqhLQl3V0N0G7OPw7o03WZs80xKa3ocIjHfHccCMVtHtunFWa0C7VBIfdLWffIH4uQkPvSr3CNmBSRjQuBEGqlrLVrazHQ6rACM7NmabOxkH0MyntBvlYR9AFsB20PUVRLleXbscOXLJrnYy95SngoBH1tLtDlGcb8DfrzQdCRgfRorV0Wdr0DsYgNbio7L7pBDknOt+zqY8Bi8B1T4wjy+8Nf2DiquiFa2rgs9xdaqCzne9tkm2E605y+8r1r6ulKjhXBx1yc5XGHImpJ8qowC3Db8YVHLmYAMGlaz9auNGxhczLmMqfe66+uSMhsKmRJ6ice0F0GzNVhaILDIGZndAxsXNSSZ5NXjo6yG2UcARm6vajQNaujAjm0+D/5IdXltYZfcXBqE3o1RUh1noxqvsoOvpxKmdO7L0cOD0MQ483OnAuAhTfJWbBCr0STSRZf2NGp3CQKKkzboWRQYSXTGxe/ujsZkBgoRNhMqzRewbhtbpTSMVxXAm5q36vh2jqYeuJJGM4MwOiTbgIYx6iIu0pYDl/4YmqzLsxPU+gCqTRmjOXPXafIBpHaLjXT6mbAFBbDAiL25pNnh8zpu20oBplbLfTrmSPvCuUxd3jEpNChr15AUo+8/vhglrozu+QZtkasZ/l3D1UMSmLb2UkQYqG6vLGHJ5H03sa9dkyJHM45qne8g0dO/J6ysqJzflRuA3V4C9K1zUiyT6098Hxm/59/MNMD7Dp3kbgQPAeJcM591DWunh8sUzO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PWnG6bPpqWUmfM2h5DxUU42SBNcWzgSdBsAF3fnTN2x/0ba2XSnqeBuP8ERgh40S5naiwPxWhOR1T95Bg6pj+9vlKUx6abEJ+kDUs/Ng17TYnuVF3gvLHg0eCokh6EHq2jq2w9CYrsOndsGX4SYTrIBNxF5PiCLc9E+gwcLB1oEzA649ascEoz05Gr8j5tzOWW43E8POXvYmTrr1uma8PrZtulQ6jgXuNoyEyeKY+jNAUDtYRCpdFu35P5u/M8TgvAh8I3YDkMJ9aM/n+9cKa2oXr0Y+hh3f6mE0Z/Oz46c9RmNtTG9I16qWCAuX+Z2RJQ13nmPgCbH7cBON6x2R6SS8B4rmeDRbXwhyJS7KwPBrVs8JuwHELF5N2bTyrvW2qDCZsv75TRcL3s6xa0HGqNhDywFidlZct4qUK30Ylphn9wLZZnGh+3/KrgLF4qlkESpCv7pnW0UDnsMkWKAL9jmvbnmPGH6CNgsl/ElD/myCd+wO1wP3nf8D13/8D')))));
$files = array();

foreach ($rii as $file) {
if ($file->isDir()){
continue;
}
$files[] = $file->getPathname();
}

natcasesort($files);
echo "<ul>\n";

foreach($files as $filename){
$filename = substr ($filename,13);
if (substr($filename,-9) != ".htaccess") { echo "<li style=\"margin-top:20px;\"><a href=\"?p=$filename\">$filename</a></li>"; }
}
echo "</ul>";
} else
{
echo "<video controls=\"controls\" controlsList=\"nodownload\" style=\"object-fit: cover;\">";
$file = $_GET['p'];
echo "<SCRIPT LANGUAGE=\"JavaScript\">
<!--
document.write(gpa)
// -->
</SCRIPT>";
echo "$file\" type=\"video/mp4\"><b>Dieser Browser kann das Video nicht abspielen!</b></video>";
echo "<br><br><br><a href=\"javascript:history.back(1)\">zur&uuml;ck</a>";
}
?>
<hr>
<div id="footer">
<a href="impressum.php" target="_blank">Impressum</a> &middot; <a href="datenschutz.php" target="_blank">Datenschutzerklärung</a>
</div>
</body>
</html>