Bloquear archivos

Necesito saber como hago para bloquear los archivos para que no sean bajados de i web. Desde ya ls agradezco su ayuda
Silvana

1 respuesta

Respuesta
1
Podrias ser mas especifica... por que podrias bloquear el acceso a carpetas bastaria con colocar un archivo. Index dentro de cada carpeta... o el uso de java script para bloquear el uso de boton derecho del mouse...
Si eres mas especifica en tu pregunta te podria ayudar mucho mas..
Si, me refiero al uso del Java script psra bloquear el uso del boton derecho del mouse. Desde ya mil gracias por tu ayuda
Bueno aqui te dejos varios codigos... escoje el que te guste mas... todos hacen lo mismo..
/////////////////////////////////
<!-- Botón derecho del mouse -->
<script LANGUAGE="JavaScript1.1">
<!-- Adaptado por Tk: Compatible con IE y NS -->
<!-- Script original enviado por Graciela -->
function derecha(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
alert('Botón derecho inhabilitado')
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2)){
alert('Botón derecho inhabilitado')
}
}
document.onmousedown=derecha
</script>
/////////////////////////////////////
<script language="JavaScript">
<!--
/*
No rightclick script v.2.5
(c) 1998 barts1000
[email protected]
Don't delete this header!
*/
var message="Sorry, that function is disabled.\nThis Page Copyrighted and\nImages and Text protected!\nALL RIGHTS RESERVED";
// Don't edit below!
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
/////////////////////////////////////
<script language="JavaScript">
<!-- Beginning of JavaScript -
// Urs Dudli and Peter Gehrig.
// www.javafile.com
function buttoncheck(e) {
if(document.all && event.button==2) {
document.all.orderwindow.style.visibility = "visible"
alert("Please order my HTML-source by email!")
return false
}
if(document.layers && e.which==3) {
document.orderwindow.visibility = "visible"
alert("Please order my HTML-source by email!")
return false
}
}
function sendmail() {
if(document.all) {
document.all.orderwindow.style.visibility = "hidden"
document.forms[0].submit()
}
if(document.layers) {
document.orderwindow.visibility = "hidden"
document.orderwindow.document.forms[0].submit()
}
}
function closewindow() {
if(document.all) {
document.all.orderwindow.style.visibility = "hidden"
}
if(document.layers) {
document.orderwindow.visibility = "hidden"
}
}
if(document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = buttoncheck;
// -->
</script>
//////////////////////////////////////////
<script>
window.oncontextmenu="return false";
</script>
////////////////////////////////
<script language="JavaScript">
<!--
/*
*/
var message="Hey YOU!\nStop Stealing my pictures or\nFACE THE PUNISHMENT!"
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
//////////////////////////////////
Todos estos scripts realizan lo mismo, bloquear el boton derecho, escoje el que te guste mas, que cubra tus necesidades..
No dudes en consultarme cualquier cosa o agregarme a tus expertos favoritos...
No olvides cerrar y valorar la pregunta..

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas