jakebur01 Posted April 12, 2007 Share Posted April 12, 2007 Does anyone know how to make it to where no one can right click and copy a bunch of important data off of you page? Link to comment https://forums.phpfreaks.com/topic/46676-solved-no-copy/ Share on other sites More sharing options...
kenrbnsn Posted April 12, 2007 Share Posted April 12, 2007 That's a Javascript function, but think about it -- if your page is displayed, then the data is available no matter how you try to protect it. Ken Link to comment https://forums.phpfreaks.com/topic/46676-solved-no-copy/#findComment-227405 Share on other sites More sharing options...
jakebur01 Posted April 12, 2007 Author Share Posted April 12, 2007 Yea, I just need to make it harder for people to get the information though. Link to comment https://forums.phpfreaks.com/topic/46676-solved-no-copy/#findComment-227407 Share on other sites More sharing options...
jakebur01 Posted April 12, 2007 Author Share Posted April 12, 2007 I found this. It makes it to where ppl are unable to right click. <HEAD> <SCRIPT LANGUAGE="JavaScript1.1"> <!-- Original: Martin Webb ([email protected]) --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert("Sorry, you do not have permission to right click."); return false; } return true; } document.onmousedown=right; document.onmouseup=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); if (document.layers) window.captureEvents(Event.MOUSEUP); window.onmousedown=right; window.onmouseup=right; // End --> </script> </HEAD> Link to comment https://forums.phpfreaks.com/topic/46676-solved-no-copy/#findComment-227409 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.