Alıntı
WordPress içeriklerinizin kopyalanma (tarama) ve siteniz üzerinde mouse sağ click engeli koymak için aşağıdaki kodu, temanızın functions.php dosyasının en sonuna ekleyebilirsiniz.
add_action('wp_head', 'sworks'); function sworks(){ ?> <style> .* {-moz-user-select:none; -webkit-user-select:none; cursor: default; }html {-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-tap-highlight-color: rgba(0,0,0,0); }</style> <script type="text/javascript"> //<![CDATA[ document.ondragstart = function() { return false;}     function nocontext(e) {        return false;     }     document.oncontextmenu = nocontext; //]]> </script> <script type="text/javascript"> document.onkeydown = function(e) {        if (e.ctrlKey &&             (e.keyCode === 67 ||              e.keyCode === 86 ||              e.keyCode === 85 ||  e.keyCode === 83 ||              e.keyCode === 117)) {            alert('Kopyalamanıza izin verilmiyor.');            return false;        } else {            return true;        } }; </script> <?php };
Benim isteğim ise yazı seçilebilsin, ama ctrl+c ile sağ tık çalışmasın, yazı seçildiğinde tutarak notepad vs. taşınamasın. BU söylediklerim mümkün mü? Yukarıdaki kod blogunda biryerleri değiştirerek gerçekleştirmek mümkün mü?