Comment cacher un script ou un lien dans celui ci
Je fais du streaming sur mon site (actuellement en cours de test) et j'aimerai savoir si il y a un moyen de cacher la source. Ou tout simplement, faire que le lien de la vidéo ne soit accessible uniquement qu'après l'ouverture de la page en question, ou (qu'après l'exécution d'un script)
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
| <script language="JavaScript">
<!--
var installed = false;
if(navigator.userAgent.indexOf('MSIE') != -1 &&
navigator.userAgent.indexOf('Win') != -1)
{
// IE/Windows - can't use navigator.plugins since it's empty
// must use VBScript instead to detect the plugin
document.writeln('<script language="VBscript">');
document.writeln('detectableWithVB = False');
document.writeln('If ScriptEngineMajorVersion >= 2 then');
document.writeln(' detectableWithVB = True');
document.writeln('End If');
document.writeln('Function detectActiveXControl(activeXControlName)');
document.writeln(' on error resume next');
document.writeln(' detectActiveXControl = False');
document.writeln(' If detectableWithVB Then');
document.writeln(' detectActiveXControl = IsObject(CreateObject(activeXControlName))');
document.writeln(' End If');
document.writeln('End Function');
document.writeln('</scr' + 'ipt>');
// Now use the function
installed = detectActiveXControl('npdivx.DivXBrowserPlugin.1');
}
else
{
// See if DivX Web Player is installed
if (navigator.plugins['DivX® Web Player'])
{
installed = navigator.plugins['DivX® Web Player'];
}
else if (navigator.plugins['DivX Browser Plug-In'])
{
installed = navigator.plugins['DivX Browser Plug-In'];
}
}
if(installed)
{
document.write('<div style="height: 380px; width: 595px;">');
document.write('<div style="width: 595px; height: 380px; clear: both; float: left; margin-left: auto; margin-right: auto;">');
document.write('<object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"');
document.write('width="595" height="380"');
document.write('codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">');
document.write('<param name="src" value="http://computeam.free.fr/bleach_vid.avi" />');
document.write('<embed type="video/divx" src="http://computeam.free.fr/bleach_vid.avi"');
document.write('width="595" height="380"');
document.write('pluginspage="http://go.divx.com/plugin/download/">');
document.write('</embed>');
document.write('</object>');
document.write('</div>');
document.write('</div>');
}
else
{
document.write('<map name="curtains_map_Map">');
document.write('<area shape="rect" alt="" coords="326,141,486,189" href="http://download.divx.com/player/DivXWebPlayer.dmg">');
document.write('<area shape="rect" alt="" coords="125,141,317,189" href="http://download.divx.com/player/DivXWebPlayerInstaller.exe">');
document.write('</map>');
document.write('<div style="height: 380px; width: 595px;">');
document.write('<img src="http://images.divx.com/movies/player-curtains.jpg" usemap="#curtains_map_Map" border="0">');
document.write('</div>');
}
// -->
</script>
<center>
</center>
<!-- Fireclick Netflame Web Analytics - COPYRIGHT 1999-2003 - Please do not modify this code-->
<script language="javascript">
function handle(){return true;}
window.onerror=handle;
var fc_host='www.divx.com';
document.write('<scr'+'ipt '
+'src="'+((location.protocol=='http:')?'http://a644.g.akamai.net/f/644/67/3h/':'https://a248.e.akamai.net/f/248/67/3h/ssl-')
+'hints.netflame.cc/service/sc'+'ript/'+fc_host+'"></scr'+'ipt>');
function fcce(){if (typeof(fcnf)!="undefined") fcnf();}
var fcfn=window.onload;
function fcco(){window.setTimeout("fcce();", 100);fcfn();}
window.onload= null==fcfn ? fcce:fcco;
</script> |
Cacher ou rendre http://computeam.free.fr/bleach_vid.avi inaccessible.
C'est possible?
Lien de la page de streaming http://computeam.free.fr/stream/index4.php
testé avec Mozilla et FireFox, désolé, pour les utilisateurs de Ie, il y a encore des petits problème d'alignement.