Cara Memasang Script Anti Ctrl+U Dengan Efek Redirect URL

11:11 PM

Cara Memasang Script Anti Ctrl+U Dengan Efek Redirect URL


BLOGGINGPASURUAN, Artikel kali ini adalah tentang “ Cara Agar Blog Anda tidak Bisa di Ctrl+U oleh Pengunjung Blog disertai fungsi redirect ( mengalihkan URL ) “ intinya kita menghindari pengunjung untuk melakukan aktifitas pencurian kode (script) template Blog Anda, disini saya menggunakan Java script untuk me-non aktifkan penggunaan tombol Ctrl + U Dengan Efek Redirect ( Pengalihkan URL)

Saya akan jelaskan sedikit tentang fungsi atau effect redirect link ( mengalihkan URL ), script yang nanti saya bagikan dibawah berfungsi ketika seorang pengunjung melakukan Ctrl+U atau Ctrl+S untuk melihat isi script dari template blog Anda,jadi fungsi dari script akan langsung mengalihkannya ke halaman utama (home) dari blog Anda tanpa menampilkan kode template secara keseluruhan, artinya pengunjung tidak dapat melihat apapun isi kode (script ) template Anda.

Langsung saja yang ingin tau script DISABLE Ctrl+U dengan efek redirect silahkan lihat tutorial cara pemasangannya di blog seperti dibawah ini :

1. Masuk ke akun Blogger Anda
2. Klik Template >> Edit HTML
3. Cari kode </body>
4. Copy kode dibawah ini, lalu Paste diatas kode </body>

<script type='text/javascript'>
//<![CDATA[
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="https://bloggingpasuruan.blogspot.com"});
//]]>
</script>

5. Klik Simpan Template

Catatan : Ganti yang saya warnai dengan blok warna PUTIH dengan URL Blog Anda.

Dengan menggunakan script DISABLE Ctrl + U diatas setidaknya akan meminimalisir pencurian kode dari blog Anda.

Semoga Bermanfaat...

Share this with short URL: Get Short URLloading short url

Nama saya Usman Kurniawan dari Pasuruan - jawa timur dan bukan seorang Blogger Pro, Namun saya akan serius belajar jika menyukai sesuatu hal, termasuk dunia blogging.

Previous
Next Post »

4 comments

Write comments
kanchana
AUTHOR
June 24, 2016 at 5:15 AM delete

Truely a very good article on how to handle the future technology. After reading your post,thanks for taking the time to discuss this, I feel happy about and I love learning more about this topic. keep sharing your information regularly for my future reference. This content creates a new hope and inspiration with in me. Thanks for sharing article like this. The way you have stated everything above is quite awesome. Keep blogging like this. Thanks.
Hadoop training in chennai

Reply
avatar
nina macylaan
AUTHOR
February 7, 2017 at 5:56 AM delete

Kindly thanks for This useful post .

CodingDir.com

Regards

Reply
avatar
Shalini
AUTHOR
February 24, 2017 at 11:20 PM delete

Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.
Digital Marketing Company in India
Seo Company in India

Reply
avatar
March 7, 2017 at 10:03 PM delete

Very nice post here and thanks for latest smartphone applications it .I always like and such a super colors of phone for these post.Excellent and very cool idea and great models and different kinds of the more information's.

Fresher Jobs in Chennai
Fresher Jobs in Delhi
Fresher Jobs in Bangalore
Fresher Jobs in Kolkata

Reply
avatar