Membuat Anti Copas Blog dengan Kode CSS
Anti Copas keseluruhan blog
- Buka Template pilih edit HTML
- Cari kode </head> letakkan kode berikut tepat dibawah </head>
<script type="text/javascript">
if (typeof document.onselectstart!="undefined") {
document.onselectstart=new Function ("return false");
}
else{
document.onmousedown=new Function ("return false");
document.onmouseup=new Function ("return true");
}
</script >
if (typeof document.onselectstart!="undefined") {
document.onselectstart=new Function ("return false");
}
else{
document.onmousedown=new Function ("return false");
document.onmouseup=new Function ("return true");
}
</script >
Bebas menentukan bagian tertentu yang tidak ingin di Copas
- Buka Template pilih edit HTML
- Cari kode ]]></b:skin> atau </style> dan letakkan kode tepat diatasnya
.do-not-copy {
-webkit-user-select:none;
-khtml-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
-webkit-user-select:none;
-khtml-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
Gunakan mode HTML penerapannya pada postingan blog
<div class="do-not-copy"> tulis artikel mana yang tidak ingin di copas </div>
Anti Copas kecuali bagian tertentu blog
- Buka Template pilih edit HTML
- Cari kode ]]></b:skin> atau </style> dan letakkan kode tepat diatasnya
.post { -webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -ms-user-select:none; -moz-user-select:none; }
.post blockquote,.post pre,.post code { -webkit-touch-callout:text; -webkit-user-select:text; -khtml-user-select:text; -ms-user-select:text; -moz-user-select:text; }
.post blockquote,.post pre,.post code { -webkit-touch-callout:text; -webkit-user-select:text; -khtml-user-select:text; -ms-user-select:text; -moz-user-select:text; }
Anti klik kanan sekaligus Anti Copas
- Buka Template pilih edit HTML
- Cari kode </body> dan ganti dengan kode tersebut atau hanya dengan menambahkan kode berwarna biru pada </body>
<body oncontextmenu='return false;' onkeydown='return false;' onmousedown='return false;'>