\r\n\r\n \r\n\r\n이것을 그누보드 관리자 페이지에서 추가 스크립트에 넣으시먄 작동...","url":"https://sir.kr/boards/pg_tip/17888","author":{"@type":"Person","name":"Tak2","url":"https://sir.kr/profile/77b45ed5-330c-4571-b06f-419e71613197"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":16},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":8}],"datePublished":"2024-02-22T12:42:55+09:00","dateModified":"2024-04-19T01:00:30+09:00","comment":[{"@type":"Comment","text":"오옷 감사합니다. 한번 해볼게요\r\n","author":{"@type":"Person","name":"WiliamCho"},"datePublished":"2024-02-23T17:18:32+09:00"},{"@type":"Comment","text":"감사합니다\r\n","author":{"@type":"Person","name":"너나잘해"},"datePublished":"2024-02-25T06:24:58+09:00"},{"@type":"Comment","text":"감사합니다.\r\n","author":{"@type":"Person","name":"써맨"},"datePublished":"2024-02-27T00:04:47+09:00"},{"@type":"Comment","text":"감사합니다\r\n","author":{"@type":"Person","name":"피그마"},"datePublished":"2024-03-14T18:44:29+09:00"},{"@type":"Comment","text":"감사합니다\r\n","author":{"@type":"Person","name":"아이스웨덴™"},"datePublished":"2024-03-25T03:16:52+09:00"},{"@type":"Comment","text":"게시판 스팸 글 막기","author":{"@type":"Person","name":"경주빵"},"datePublished":"2024-04-03T14:44:54+09:00"},{"@type":"Comment","text":"오 획기적인 아이디어입니다.\r\n","author":{"@type":"Person","name":"techstar"},"datePublished":"2024-04-19T01:00:30+09:00"},{"@type":"Comment","text":"오","author":{"@type":"Person","name":"탐린"},"datePublished":"2024-06-14T09:34:51+09:00"}]}
t

러시아 이용자들을 효과적으로 차단하기

스팸글 자주 올라오는데 ip대역은 너무 넓고 곤란할 때 많지 않나요?

그래서 발상의 전환을 해봤습니다. 그냥 러시아어 쓰는 사람만 차단해도 크게 스팸글이 줄어들지 않을까 하고
 

<script>

if (navigator.language || navigator.userLanguage) {

    var lang = navigator.language || navigator.userLanguage;

    if (lang.substr(0, 2) === "ru") {

        window.location.href = "리다이렉트 될 URL";

    }

}

</script>

 

이것을 그누보드 관리자 페이지에서 추가 스크립트에 넣으시먄 작동합니다.

한국어 해보니까 바로 차단되더라구요

 

차단 페이지 구현하기 귀찮으신 분들은 https://dsclub.kr/error.php 쓰셔도 되요

|

댓글 8개

오옷 감사합니다. 한번 해볼게요

감사합니다

게시판 스팸 글 막기

오 획기적인 아이디어입니다.

댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
jQuery 1년 전 조회 900
PHP 1년 전 조회 1,256
Mobile 1년 전 조회 968
기타 1년 전 조회 849
2년 전 조회 1,720
기타 2년 전 조회 2,233
2년 전 조회 1,298
2년 전 조회 1,317
2년 전 조회 1,230
2년 전 조회 1,058
2년 전 조회 4,407
2년 전 조회 2,094
2년 전 조회 1,646
2년 전 조회 3,040
2년 전 조회 2,851
2년 전 조회 3,948
2년 전 조회 1,931
JavaScript 2년 전 조회 1,089
OS 2년 전 조회 1,104
PHP 2년 전 조회 1,274
PHP 2년 전 조회 1,177
PHP 2년 전 조회 1,076
PHP 2년 전 조회 1,178
PHP 2년 전 조회 1,157
JavaScript 2년 전 조회 1,049
PHP 2년 전 조회 995
PHP 2년 전 조회 952
PHP 2년 전 조회 1,060
PHP 2년 전 조회 1,040
PHP 2년 전 조회 1,138