Tricks Duniya -ONLINE SHOPPING GUIDE, MOBILE TRICKS, ANDROID TRICKS, HACKING
(webmaster) copy content from a right click disabled website easily - Printable Version

+- Tricks Duniya -ONLINE SHOPPING GUIDE, MOBILE TRICKS, ANDROID TRICKS, HACKING (http://tricksduniya.com)
+-- Forum: COMPUTER ZONE (http://tricksduniya.com/forum-43.html)
+--- Forum: Publisher & Developer Zone (http://tricksduniya.com/forum-73.html)
+--- Thread: (webmaster) copy content from a right click disabled website easily (/thread-3251.html)



(webmaster) copy content from a right click disabled website easily - Mack Doun - 07-25-2015

here tricksduniya with a script to enable right click on a copyright protected site.Dosto aksar apne dekha hoga ke kisi page pe left click pe menu ni aa rha na ctrl fuctions open ni ho rhe to bus page ke html ke shoro me ye javascript dalen or enjoy kren.


PHP Code:

Code:
<script> 
/*function check(e) 

alert(e.keyCode); 
}*/ 
document.onkeydown = function(e) { 
        if (e.ctrlKey && (e.keyCode === 67 || e.keyCode === 86 || e.keyCode === 85 || e.keyCode === 117)) {//Alt+c, Alt+v will also be disabled sadly. 
            alert('not allowed'); 
        } 
        return false; 
}; 
</script> 
<!-- InstanceBeginEditable name="head" --> 
    <!-- InstanceEndEditable --> 
    <script language=JavaScript> 



<!-- 

//Disable right mouse click Script 
//By Mack Doun

var message="Function Disabled!"; 

/////////////////////////////////// 
function clickIE4(){ 
if (event.button==2){ 
alert(message); 
return false; 



function clickNS4(e){ 
if (document.layers||document.getElementById&&!document.all){ 
if (e.which==2||e.which==3){ 
alert(message); 
return false; 




if (document.layers){ 
document.captureEvents(Event.MOUSEDOWN); 
document.onmousedown=clickNS4; 

else if (document.all&&!document.getElementById){ 
document.onmousedown=clickIE4; 


document.oncontextmenu=new Function("alert(message);return false") 

// -->  
</script>