♣티스토리(글, 그림)복사방지 하는 방법
티스토리 블로그 우클릭과 포스팅 내용 복사를 금지하는 방법을 알려드립니다.
업로드한 사진과 글을 보호하는 방법에 도움이 되시길....
복사방지(내용드래그 방지)
▶티스토리 블로그 관리에서 스킨편집-->html 편집 클릭
html편집에서 아래와 같이 내용을 입력하면 완료입니다.
▶ctrl+f를 눌려 "head"를 검색하여 바로 밑부분부터 복사방지 내용을 그대로 붙여서 저장합니다.
<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
}
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
▶참고 사진첨부
'IT' 카테고리의 다른 글
에버노트를 정리하는 4가지 전략 (0) | 2018.10.24 |
---|---|
티스토리 방문자수 안보이게 설정하는 요령 (0) | 2018.10.11 |
에버노트 활용방법 (0) | 2018.09.17 |