RokiAdhytama

Anti Copas di web

Jun 12th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. Anti Copy Paste, Klik Kanan, Ctrl+U, Ctrl+C dan Ctrl+A
  2.  
  3. 1. Masuk ke Account blogger anda
  4. 2. Pilih Template dan klik EDIT html
  5. 3. Cari kode <body>, untuk mempercepat tekan ctrl + F
  6. 4. Kemudian kode <body> dihapus dan ganti salah satu kode di bawah ini:
  7.  
  8. Agar tidak bisa klik kanan:
  9.  
  10. <body onkeydown='return false;'>
  11.  
  12.  
  13. Agar tidak bisa klik kanan, crtl+u, ctrl+a, ctrl+c dll:
  14.  
  15. <body oncontextmenu='return false;' onkeydown='return false;' onmousedown='return false;'>
  16.  
  17.  
  18. 5. Kemudian Save dan lihat hasilnya
  19.  
  20.  
  21.  
  22. Script Anti Klik Kanan dengan tanda peringatan
  23.  
  24. 1. Masuk Ke Alamat Blog Anda
  25. 2. Buka Dasbor lalu Klik Tata Letak
  26. 3. Buka Elemen Halaman
  27. 4. Klik Tambah Gadged
  28. 5. Copy Kode Script Berikut ini
  29.  
  30. <script> var message="Maaf,, Dilarang Klik Kanan Di Situs";
  31. ///////////////////////////////////
  32. 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>
  33.  
  34.  
  35. 6. Setelah itu klik HTML/Javascript
  36. 7. Lalu Copy Paste kode diatas
  37. 8. Ganti "Maaf,, Dilarang Klik Kanan Di Situs" dengan yang anda inginkan
  38. 9. SAVE Dan Lihat Hasilnya.
  39.  
  40.  
  41.  
  42. Script Redirect/Mengalihkan CTRL+U ke Alamat Lain
  43.  
  44. Buat anda yang ingin memproteksi blog/web dengan Ctrl+U, untuk meminimalisir para Copasser, anda dapat mengalihkan/redirect fungsi Ctrl+U ke alamat lain, Caranya ikuti langkah-langkah di bawah ini:
  45.  
  46. 1. Masuk ke Account blogger sobat
  47. 2. Pilih Template dan klik EDIT html
  48. 3. Cari kode <body>, untuk mempercepat tekan ctrl + F
  49. 4. Copy dan simpan kode di bawah ini tepat di atas </body>
  50.  
  51. <script type='text/javascript'>
  52. //<![CDATA[
  53. shortcut={all_shortcuts:{},add:function(a,b,c){var d={type:"keydown",propagate:!1,disable_in_input:!1,target:document,keycode:!1};if(c)for(var e in d)"undefined"==typeof c[e]&&(c[e]=d[e]);else c=d;d=c.target,"string"==typeof c.target&&(d=document.getElementById(c.target)),a=a.toLowerCase(),e=function(d){d=d||window.event;if(c.disable_in_input){var e;d.target?e=d.target:d.srcElement&&(e=d.srcElement),3==e.nodeType&&(e=e.parentNode);if("INPUT"==e.tagName||"TEXTAREA"==e.tagName)return}d.keyCode?code=d.keyCode:d.which&&(code=d.which),e=String.fromCharCode(code).toLowerCase(),188==code&&(e=","),190==code&&(e=".");var f=a.split("+"),g=0,h={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},i={esc:27,escape:27,tab:9,space:32,"return":13,enter:13,backspace:8,scrolllock:145,scroll_lock:145,scroll:145,capslock:20,caps_lock:20,caps:20,numlock:144,num_lock:144,num:144,pause:19,"break":19,insert:45,home:36,"delete":46,end:35,pageup:33,page_up:33,pu:33,pagedown:34,page_down:34,pd:34,left:37,up:38,right:39,down:40,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},j=!1,l=!1,m=!1,n=!1,o=!1,p=!1,q=!1,r=!1;d.ctrlKey&&(n=!0),d.shiftKey&&(l=!0),d.altKey&&(p=!0),d.metaKey&&(r=!0);for(var s=0;k=f[s],s<f.length;s++)"ctrl"==k||"control"==k?(g++,m=!0):"shift"==k?(g++,j=!0):"alt"==k?(g++,o=!0):"meta"==k?(g++,q=!0):1<k.length?i[k]==code&&g++:c.keycode?c.keycode==code&&g++:e==k?g++:h[e]&&d.shiftKey&&(e=h[e],e==k&&g++);if(g==f.length&&n==m&&l==j&&p==o&&r==q&&(b(d),!c.propagate))return d.cancelBubble=!0,d.returnValue=!1,d.stopPropagation&&(d.stopPropagation(),d.preventDefault()),!1},this.all_shortcuts[a]={callback:e,target:d,event:c.type},d.addEventListener?d.addEventListener(c.type,e,!1):d.attachEvent?d.attachEvent("on"+c.type,e):d["on"+c.type]=e},remove:function(a){var a=a.toLowerCase(),b=this.all_shortcuts[a];delete this.all_shortcuts[a];if(b){var a=b.event,c=b.target,b=b.callback;c.detachEvent?c.detachEvent("on"+a,b):c.removeEventListener?c.removeEventListener(a,b,!1):c["on"+a]=!1}}},shortcut.add("Ctrl+U",function(){top.location.href="http://contoh.com"});
  54. //]]>
  55. </script>
  56.  
  57.  
  58. 5. Ganti http://contoh.com dengan alamat Blog anda/URL tujuan
  59. 6. Save dan lihat hasilnya
  60.  
  61. Demikianlah Beberapa Cara/Script Anti Copy Paste Agar Postingan Blog Tidak Bisa Klik Kanan, Ctrl+U, Ctrl+C dan Ctrl+A dll, Silahkan Pilih salah satu sesuai kebutuhan anda.
Add Comment
Please, Sign In to add comment