Hola de nuevo otra pregunta, como puedo hacer para que no se pueda copiar mi codigo, cuando una poner ver codigo fuente?, para que no copien como se ha hecho la pagina. gracias
Respuesta de leonn18
1
1
leonn18, Soy analista desarrollador web freelance con experiencia en...
Existen varios script que bloquean los eventos del mause para ver el codigo fuente, pero dentro de las funciones del explorer es permitir hacer esto. Aqui te envio el codigo fuente para bloquear el boton derecho del mause. <script language="JavaScript"> function showNow(scale) { var CategoryString = ""; var searchStringLong = "script+bloquear+boton+derecho+mouse"; var surveyLocation = "/doc/general/angelfire_popunder.html"; if( CategoryString != "(none)" && searchStringLong != "(none)") { surveyLocation = surveyLocation + "?Category=" + CategoryString + "&search_string=" + searchStringLong; } else if( CategoryString != "(none)" ) { surveyLocation = surveyLocation + "?Category=" + CategoryString; } else if( searchStringLong != "(none)" ) { surveyLocation = surveyLocation + "?search_string=" + searchStringLong; } var expdate = new Date (); var surveyCookieName = "AFPOPUNDER"; var percentOfferedSurvey = 100; var popupNewWindow = true; expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000)); var stored_value = GetCookie(surveyCookieName); if (stored_value == null) { SetCookie(surveyCookieName, "under", expdate, "/", ""); nowWin = window.open(surveyLocation,'under','height=300,width=720,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'); nowWin.blur(); } } function showInsite(){ var CategoryString = ""; var searchStringLong = "script+bloquear+boton+derecho+mouse"; var surveyLocation = "/doc/general/insite.html"; if( CategoryString != "(none)" && searchStringLong != "(none)") { surveyLocation = surveyLocation + "?Category=" + CategoryString + "&search_string=" + searchStringLong; } else if( CategoryString != "(none)" ) { surveyLocation = surveyLocation + "?Category=" + CategoryString; } else if( searchStringLong != "(none)" ) { surveyLocation = surveyLocation + "?search_string=" + searchStringLong; } //add member url surveyLocation = surveyLocation + "&member_url=" + document.location; var expdate = new Date (); var surveyCookieName = "AFINSITE"; var percentOfferedSurvey = 100; var popupNewWindow = true; expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000)); var stored_value = GetCookie(surveyCookieName); if (stored_value == null && searchStringLong != "(none)"){ SetCookie(surveyCookieName, "insite", expdate, "/", ""); insiteWin = window.open(surveyLocation,'insite','height=300,width=450,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no'); if(insiteWin){ insiteWin.blur(); } } } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; if( (document.cookie == null) || (document.cookie.length == null)) { return null; } var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } showNow(); showInsite(); </script> Cualquier dudas me avisas