中文字幕在线观看,亚洲а∨天堂久久精品9966,亚洲成a人片在线观看你懂的,亚洲av成人片无码网站,亚洲国产精品无码久久久五月天

wordpress如何禁止復(fù)制內(nèi)容

2019-10-10    來(lái)源:愛站科技

容器云強(qiáng)勢(shì)上線!快速搭建集群,上萬(wàn)Linux鏡像隨意使用

我們經(jīng)常會(huì)在網(wǎng)站上遇到禁止復(fù)制網(wǎng)站內(nèi)容的情況,那么你知道wordpress如何禁止復(fù)制內(nèi)容嗎?接下來(lái)的內(nèi)容中西部數(shù)碼小編將介紹wordpress禁止復(fù)制內(nèi)容的實(shí)現(xiàn)方法,希望對(duì)大家有所幫助。

1、右鍵復(fù)制時(shí)顯示提示語(yǔ)

把下面代碼放到footer.php里即可

?

復(fù)制代碼
代碼如下:

<html>
<head><title>防復(fù)制</title><meta http-equiv="Content-Type" cont
ent="text/html; charset=utf-8" /></head>
<script>
function stop(){
alert('鄙視盜版,尊重版權(quán),人人有責(zé)!');
return false;
}
document.oncontextmenu=stop;
</script>
<body onselectstart="return false" onpaste="return false" oncop
y="return false;"
oncut="return false;" >
</body>
</html>

?

2、禁用所有復(fù)制功能

把下面代碼放到footer.php里即可。

?

復(fù)制代碼
代碼如下:

<script type="text/Javascript">
<!--
document.oncontextmenu=function(e){return false;};
document.onselectstart=function(e){return false;};
//-->
</script>
<style>
body{
-moz-user-select:none;
}
</style>
<SCRIPT LANGUAGE=javascript><!--
if (top.location != self.location)top.location=self.location;
// --></SCRIPT>
<noscript><iframe src=*.html></iframe></noscript>

?

此代碼實(shí)現(xiàn):

1、禁止鼠標(biāo)左鍵選取內(nèi)容。
2、禁止鼠標(biāo)右鍵復(fù)制功能。
3、禁止使用ctrl鍵,無(wú)法復(fù)制。

wordpress如何禁止復(fù)制內(nèi)容?小編在上面分享了兩種代碼,當(dāng)別人在復(fù)制網(wǎng)站內(nèi)容時(shí),會(huì)顯示溫馨提示語(yǔ);另一種更直接的禁止了所有有關(guān)復(fù)制功能鍵的使用。

標(biāo)簽: Wordpress 禁止復(fù)制

版權(quán)申明:本站文章部分自網(wǎng)絡(luò),如有侵權(quán),請(qǐng)聯(lián)系:west999com@outlook.com
特別注意:本站所有轉(zhuǎn)載文章言論不代表本站觀點(diǎn)!
本站所提供的圖片等素材,版權(quán)歸原作者所有,如需使用,請(qǐng)與原作者聯(lián)系。

上一篇:WordPress打開速度很慢怎么辦

下一篇:WordPress博客防黑技巧