Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. <script>
  2.  
  3.  
  4. var message="تمنع سياسة الحماية نسخ المحتوى او فحص الموقع";
  5.  
  6. ///////////////////////////////////
  7. function clickIE4(){
  8. if (event.button==2){
  9. alert(message);
  10. return false;
  11. }
  12. }
  13.  
  14. function clickNS4(e){
  15. if (document.layers||document.getElementById&&!document.all){
  16. if (e.which==2||e.which==3){
  17. alert(message);
  18. return false;
  19. }
  20. }
  21. }
  22.  
  23. if (document.layers){
  24. document.captureEvents(Event.MOUSEDOWN);
  25. document.onmousedown=clickNS4;
  26. }
  27. else if (document.all&&!document.getElementById){
  28. document.onmousedown=clickIE4;
  29. }
  30.  
  31. document.oncontextmenu=new Function("alert(message);return false")
  32.  
  33. // -->
  34. </script>
  35.  
  36.  
  37.  
  38. <script language="JavaScript">
  39. //////////F12 disable code////////////////////////
  40. document.onkeypress = function (event) {
  41. event = (event || window.event);
  42. if (event.keyCode == 123) {
  43. //alert('No F-12');
  44. return false;
  45. }
  46. }
  47. document.onmousedown = function (event) {
  48. event = (event || window.event);
  49. if (event.keyCode == 123) {
  50. //alert('No F-keys');
  51. return false;
  52. }
  53. }
  54. document.onkeydown = function (event) {
  55. event = (event || window.event);
  56. if (event.keyCode == 123) {
  57. //alert('No F-keys');
  58. return false;
  59. }
  60. }
  61. /////////////////////end///////////////////////
  62. </script>
  63.  
  64. <script>
  65. /*function check(e)
  66. {
  67. alert(e.keyCode);
  68. }*/
  69. document.onkeydown = function(e) {
  70. if (e.ctrlKey && (e.keyCode === 67 || e.keyCode === 86 || e.keyCode === 85 || e.keyCode === 117)) {//Alt+c, Alt+v will also be disabled sadly.
  71. alert('تمنع سياسة الحماية نسخ المحتوى او فحص الموقع');
  72. }
  73. return false;
  74. };
  75. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement