Xin chào,
Bạn nào biết hoặc có mod nào chống copy bài viết của diễn đàn không, chỉ giúp mình với. Diễn đàn của mình dùng phiên bản 4.0.8
Cảm ơn!
Printable View
Xin chào,
Bạn nào biết hoặc có mod nào chống copy bài viết của diễn đàn không, chỉ giúp mình với. Diễn đàn của mình dùng phiên bản 4.0.8
Cảm ơn!
Dùng code này bỏ vào footer nhé bạn.
HTML Code:<script language="JavaScript1.2">
var message="Bản quyền bài viết thuộc về CongDongThongMinh.Com";
function click(e)
{
if (document.all)
{
if (event.button==2||event.button==3)
{
alert(message);
return false;
}
}
else
{
if (e.button==2||e.button==4)
{
e.preventDefault();
e.stopPropagation();
alert(message);
return false;
}
}
}
if (document.all) // for IE
{
document.onmousedown=click;
}
else // for FF
{
document.onclick=click;
}
</script>
<script type="text/javascript">
function ehan( evnt )
{
if( evnt.which == 3 )
{
alert( "Bản quyền bài viết thuộc về CongDongThongMinh.Com" );
return false;
}
return true;
}
function ocmh()
{
alert( "Bản quyền bài viết thuộc về CongDongThongMinh.Com" );
return false;
}
document.oncontextmenu = ocmh;
document.captureEvents( Event.MOUSEDOWN );
if( document.layers ) document.onmousedown = ehan;
</script>
<SCRIPT language="JavaScript">
if (window!=top){top.location.href=location.href;}
</script>
<script type="text/javascript">
<!--
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
-->
</script>
<SCRIPT language="JavaScript">
if (window!=top){top.location.href=location.href;}
</script>
<script type="text/javascript">
<!--
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
-->
</script>
Cảm ơn bạn!
Nhưng cái này chỉ cần tắt Java script là vẫn copy được nhỉ. Có còn cách nào triệt để hơn không?
Hiện tại mình chỉ biết cách này à. Để mình tìm hiểu thêm nhé.
Copy nó tự gắn thêm cái nguồn là được rồi, còn muốn không cho copy thì tốt nhất đừng có viết bài làm gì :MatCuoi (57):
:) bạn có thể nghiên cứu code chống bôi đen bài viết bên này:Trích:
Link xóa bởi t8mclub
Bó tay, quảng cáo gì chứ, chỉ là cái trang web nó có code để anh em thích thì Ctrl+U mà nghiên cứu! chứ có phải là dẫn link download gì đâu, thích thì ban nick luôn đi, thẻ làm gì
chắc forum nên có hướng dẫn cái nào là demo cái nào là quảng cáo ,
đã cho họ là thành viên thì cũng nên cho họ chia sẽ. Chống lick chuột phải với khách thôi. Dự độc quyền thì diễn đàn đâu còn là diễn đàn?