티스토리 블로그 복사금지 및 특정영역 복사 설정

카테고리 없음

티스토리 블로그 복사금지 및 특정영역 복사 설정

다오(DAO) 2023. 1. 25. 23:08

텍스트 변경금지 및 특정문장 복사 가능 설정
꾸미기-스킨변경-사용중인 스킨의 스킨편집-html 편집-CSS 선택, 코드 맨아래에 아래의 코드 붙혀넣기

/*181224 블로그 불펌방지 및 특정영역 허용*/
code {
-webkit-user-select: text !important;
-moz-user-select: text !important;
-ms-user-select: text !important;
user-select: text !important;
}
body {
-webkit-user-select: none !important;
-moz-user-select: -moz-none !important;
-ms-user-select: none !important;
user-select: none !important;
}


텍스트 특정영역 복사 가능하도록 만들기

해당 포스팅의 html 편집기 모드에 진입하여 원하는 문장 사이에 <code>....</code>를 넣는다.
예 : <code>복사를 허용할 문장</code>


이미지 복사 금지
꾸미기-스킨변경-사용중인 스킨의 스킨편집-html 편집-CSS 에서 Ctrl+G를 누르고 area_view img 검색한다.
.area_view img {border-radius:10px} 에  pointer-events : none;을 추가하면 된다.

즉, 아래 내용으로 변경하면된다.

/*본문 이미지 라운드효과 171012 */
.area_view img {border-radius:10px; pointer-events: none;}