Disable Mouse Right click & disable content copy past

প্রথমে হেড ট্যাগ এর ভিতরে অথবা বডি ট্যাগ শেষ হওয়ার পূর্ব মুহর্তে এই জাভাস্ক্রিপ্ট কোড টি অ্যাড করে দিন।

<!– Disable Mouse Right click & disable source code –>

<!– <script language=”javascript”>

document.onkeydown = function(e) {

if(event.keyCode == 123) {

return false;

}

if(e.ctrlKey && e.shiftKey && e.keyCode == ‘I’.charCodeAt(0)){

return false;

}

if(e.ctrlKey && e.shiftKey && e.keyCode == ‘J’.charCodeAt(0)){

return false;

}

if(e.ctrlKey && e.keyCode == ‘U’.charCodeAt(0)){

return false;

}

}

</script> –>

 

দ্বিতীয়ত বডি ট্যাগ এর ভিতরে এই কোড টি অ্যাড করে দিন। যেমন <body oncontextmenu=”return false; “>

 

তৃতীয়ত সি এস এস ফাইল এ এই কোড টি অ্যাড করে দিন।

 

<!–  Disable Text Cut, Copy & Past –>

p{ -webkit-user-select:none;
-moz-user-select:none;
-o-user-select:none;
-user-select:none;}
h1,h2,h3,h4,h5,h6{ -webkit-user-select:none;
-moz-user-select:none;
-o-user-select:none;
-user-select:none;}
ul,li,ol{ -webkit-user-select:none;
-moz-user-select:none;
-o-user-select:none;
-user-select:none;}

 

Leave a Reply

Your email address will not be published. Required fields are marked *