블로그 꾸미기

티스토리 복사 방지 설정하기

나인레빗 2016. 10. 25. 00:51

# 방법 1

티스토리 자체에서 플러그인으로 설정하기

 

마우스 오른쪽 클릭 방지

 

# 방법 2

HTML/CSS 설정화면에서 아래 코드 삽입

 

<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
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
<!-- 불펌 방지 코드 종료 -->

-------------------------------------------------------------------------------------------

<body>에 삽입하시기 바랍니다.


<!-- 불펌 방지 코드 시작 -->
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
<!-- 불펌 방지 코드 종료 -->