[임시] 티스토리 스팸 덧글/방명록 차단.
[클릭하시면 이미지가 확대됩니다.]
최근에 스팸덧글, 스팸방명록. 많이 달린다.
이놈들 IP를 확인해보면
전부다 중국놈들이다.
( 가끔 딴나라도 섞이긴하는데 높은 확률로 중국놈들이더군요 )
그래서, 임시적으로 자바스크립트를 발동해봄.
[ 공통 스크립트 ]
<script language="javascript" src="http://j.maxmind.com/app/geoip.js"></script> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script> function StrLength(lpString){
function MyCmpString(lpString1,lpString2,nLength){ function GotoUrl(url){ </script>
|
[ 해당 국가만 차단 ]
<script> function SetSpamFilter(){ lpBanCountry[0] = "CN"; // China // lpBanCountry[1] = "JA"; // Japan // lpBanCountry[2] = "KR"; // Korea // 위와 같은 식으로 늘려주면 된다. </script>
|
[ 해당 국가외 타 나라 접근시 차단 ]
<script> function SetSpamFilter(){ lpBanCountry[0] = "KR"; // Korea // lpBanCountry[1] = "JA"; // Japan // lpBanCountry[2] = "CN"; // China // 위와 같은 식으로 늘려주면 된다. </script>
|
[ IP로만 차단 ]
<script> $.getJSON("http://jsonip.appspot.com?callback=?", // lpBanIpList[1] = "255.255.255.255"; // 255.255.255.255 로 되는 IP 전부 차단. </script>
|
일단, 오늘 만들어서 조금 사용해봐야 알거 같은데
잘 된다 싶으면 다시 포스팅 날림.
p.s > 해당 사용자가 프로그램으로 HttpRequest 방식을 이용하면 위 방법으론 처리 불가능함.