Have you ever gone to your Akismet plug-in in Wordpress and NOT had spam to clear out? 당신의 적이 있습니까?에 갔다 wordpress Akismet 플러그 플러그 -에서 스팸 메일을 삭제 및 없었어요? Even seeing it there can be depressing and a strain on your servers resources. 그것을보고도있을 수있습니다 스트레인 귀하의 서버에서 리소스를 우울합니다. Why even let spam bots eat up your processor with extra SQL queries! 왜 스팸 머 먹을 기회조차주지 프로세서와 여분 sql 쿼리를 올려! I’ve come up with a spam defense lineup where 99% of my spam stops bots before they even get logged as spam! 스팸 메일 수비 라인을 짜요 나는 어디에 내 스팸 메일의 99 %도받을 수로 기록하기 전에 로봇을 중지 스팸!

Defense Line 1: Number CAPTCHA 수비 라인 1 : 숫자 captcha
Two months ago I posted a series of 5 Spam Blocking Posts . 두 달 전, 게시된 일련의 5 스팸 메일 차단 게시물을합니다. In one of those, I introduced my Enhanced Number Equation method. 그 중 하나에서, 나 도입 내 강화된 번호 방정식 방법을합니다. I have essentially refitted that code for Wordpress use! wordpress를 사용하는 코드를 근본적으로 나는 성형 수술! I actively use this on several of my own sites. 나는 나의 자신의 사이트에 적극적으로 여러 가지를 사용합니다. Navigate to a comments section in a content page on one of my custom coded sites: mmorpgexposed.com . 콘텐츠 페이지를 탐색할 중 하나에 덧글 섹션에서 내 사용자 정의 코딩 사이트 : mmorpgexposed.com합니다. It has worked wonders for me! 그것은 기적 나를 위해!

Here’s the steps on how to implement it. 여기에 그것을 구현하는 방법을 단계를합니다. Note I’m using Wordpress 2.6. 참고 : wordpress 2.6을 사용하고있습니다. If you’re using an earlier or later version it should work, but make sure you BAKCUP before you edit anything. 이전 또는 이후 버전을 사용하는 경우 그것은 작동하지만 아무것도를 편집하기 전에 bakcup 있는지 확인하십시오. Also make a note somewhere that you’ve edited this file so you can carry over the changes in the future. 또한이 오셨으니을 적어 둡니다 어딘가에이 파일을 편집할 수 있도록 미래의 변화에 이월합니다.

  1. <?php <함수
  2. //FILE: /wp-content/themes/YOURTHEME/comments.php - where YOURTHEME is the name of the theme you’re currently using / / 파일 : / wp-content/themes/yourtheme/comments.php - 어디에 yourtheme는 당신이 현재 사용하고 테마의 이름을
  3. //FIND: <textarea name="comment" id="comment" rows="10" cols="35" wrap="virtual" tabindex="4"></textarea> / / 발견 : name="comment" id="comment" <textarea rows="10" cols="35" wrap="virtual" tabindex="4"> </ 텍스트>
  4. //AFTER any closing tags for your paragraphs or label setup, add: / / 후 귀하의 단락 또는 레이블을 닫는 태그를 설정, 주소 :
  5. function numbercapcha ( ) { 기능을 numbercapcha () (
  6. $firstnum = rand ( 5 , 8 ) ; $ firstnum = 랜드 (5, 8);
  7. $secondnum = rand ( 1 , 4 ) ; $ secondnum = 랜드 (1, 4);
  8. $coinflip = rand ( 1 , 2 ) % 2 ; $ coinflip = 랜드 (1, 2) % 2;
  9. if ( $coinflip == 0 ) { 만일 ($ coinflip == 0) (
  10. $math = $firstnum $secondnum ; $ 수학 = $ firstnum $ secondnum;
  11. $operators = array ( " " , "Added To" , "Plus" ) ; $ 연산자를 = 배열 ( " ", "추가", "더하기");
  12. $operatorschoice = rand ( 1 , 3 ) % 3 ; $ operatorschoice = 랜드 (1, 3) % 3;
  13. } else { ) 다른 사람 (
  14. $math = $firstnum - $secondnum ; $ 수학 = $ firstnum - $ secondnum;
  15. $operators = array ( "-" , "Minus" ) ; $ 연산자를 = 배열 ( "-", "마이너스");
  16. $operatorschoice = rand ( 1 , 2 ) % 2 ; $ operatorschoice = 랜드 (1, 2) % 2;
  17. } )
  18. echo $firstnum . " " . $operators [ $operatorschoice ] . " " . $secondnum . " = <input type= \" text \" name= \" number \" maxlength= \" 2 \" size= \" 5 \" id= \" numcapcha \" style= \" width: 25px; \" >" ; 에코 $ firstnum합니다. "". $ 연산자 [$ operatorschoice]. "". $ secondnum합니다. "= <입력 유형 = \"텍스트 \ "이름 = \"숫자 \ "최대 길이 = \"2 \ "크기 = \"5 \ "번호 = \"numcapcha \ "스타일 = \"폭 : 25px; \ ">";
  19. return $math ; 반환 $ 수학;
  20. } )
  21. // Contiue with your theme and use this snippit of PHP to generate the input field: / / contiue과 당신의 주제 및 사용이 snippit의 php를 생성하는 입력 필드 :
  22. // <? / / <? $_SESSION['capcha'] = numbercapcha(); ?> $ _session [ 'capcha'] = numbercapcha ();?>
  23. // Example usage shown below: / / 예제 사용하는 방법 다음과 같습니다 :
  24. ?> ?>
  25. < p >< label for = "security" > Security </ label >< ? $_SESSION [ ‘capcha’ ] = numbercapcha ( ) ; ? ></ p > <p> <레이블을 = "보안"> 보안 </ 레이블> <? $ _session [ 'capcha'] = numbercapcha ();?> </ p>
  26. <?php <함수
  27. //FILE: /wp-comments-post.php (in the root directory) / / 파일 : / 백린 - 주석 - post.php (의 루트 디렉토리)
  28. //FIND: $comment_type = ”; / / 찾기 : $ comment_type = ";
  29. //This should be on like 63 in Wordpress 2.6 / /이 63에서 지금처럼되어야 wordpress 2.6
  30. //AFTER ADD: / / 후에 추가 :
  31. if ( is_numeric ( $numcheck ) && $sessioncapcha == $numcheck ) { 만약 (is_numeric ($ numcheck) & & $ sessioncapcha == $ numcheck) (
  32. //This should be left blank unless you want to do something else if the number was answered correctly / /이 비어 있어야하고 싶지하지 않는 한 번호가 다른 경우에 정확하게 응답
  33. } else { ) 다른 사람 (
  34. //Number wasnt answered correctly - Show Error / / 숫자를 올바르게 응답 않았다 - 표시 오류
  35. wp_die ( __ ( ‘Error: You did not answer the security question correctly.’ ) ) ; wp_die (_ ( '오류 : 당신의 보안 질문에 정확하게 대답하지 않았다.'));
  36. } )
  37. ?> ?>

The above code may differ slightly with the HTML only. 위의 코드를 html에만 약간 다를 수있습니다. You may want to tidy it up to suit your theme. 깔끔한하려고 할 수있습니다 당신의 주제에 맞게 해합니다. I also use CSS to modify the display which I have not provided here. 또한 디스플레이를 사용하는 전투 근무 지원을 수정합니다 제공하지 않는 나는 여기에있습니다. That goes a bit beyond the goal for today. 오늘의 목표에 대한 약간 넘어 다니는합니다.

Here’sa very quick howto for some CSS styling to get you started, though it doesn’t have to be all that incredibly fancy right away: 다음은 매우 빠른 하우투 일부 전투 근무 지원 스타일링 시작하기 전에 먼저 모든 것을하지 않아도됩니다지만 당장 믿을 수 팬시 :

Also, I have intentionally placed the error code before any other error is checked. 또한, 나는 의도적으로 배치가 다른 오류를 확인하기 전에 오류 코드를합니다. Checking that the CAPTCHA is correct first saves the effort of processing anything else until it is determined that the CAPTCHA has been entered correctly. 첫 번째를 저장합니다 captcha가 올바른지 확인하는 노력을 처리하는가 결정되기 전에 다른 captcha가 제대로 입력되어있습니다.

Defense Line 2: Akismet Or Defensio 수비 라인이 2 : Akismet 플러그 또는 defensio
Akismet is your second line of defense for comments. 국방에 대한 당신의 의견은 두 번째 줄에 Akismet 플러그합니다. It used to be your first, and you’d have to sort through all that garbage! 옛날에 당신의 첫째로, 그리고 당신은 모든 것을 이겨 내고 쓰레기를 정렬! You should see a big time savings here but it should still exist. 여기에 커다란 시간 절감 효과가 나타납니다하지만 이것은 아직 존재합니다. I also posted How Akismet And Defensio Create Another Line Of Spam Defense a while back . 또한 게시하는 방법을 하나 더 만들기 라인의 스팸 방어 defensio Akismet 플러그를 잠시 위로합니다. If you’re not already using one, try them out. 이미 사용하지 않는 경우 1, 시도 내야합니다. Long story short, Akismet caught more spam than Defensio did… but times change, try them both. 길고도 짧은 이야기, Akismet 플러그 defensio보다 많은 스팸 메일이 적발… 그러나 한 번 변경, 둘 다 시도합니다.

Dowload Akismet Wordpress Plug-in Or Download Defensio Anti-Spam Wordpress Plug-in dowload Akismet 플러그 wordpress 플러그 -에서 또는 다운로드 - 스팸 메일 방지 wordpress 플러그 -에 defensio

Defense Line 3: Simple Trackback Validation 수비 라인이 3 : 단순 트랙백 유효성 검사
Blocking Trackback and Pingback spam has never been so easy. 트랙백과 pingback의 스팸 차단은 너무 쉽게 본 적이있습니다. Wordpress users are very susceptible to being abused to this kind of spam which is becoming much more popular for a spammers choice of attack. wordpress 사용자가 극단적으로 과민하다 학대를 당하고 이런 종류의 스팸 메일이 훨씬 더 인기가되고있는 선택권을 스패머의 공격을합니다.

This plug-in checks two things which can both be toggled on/off for customization: 이 플러그 - 재고를 확인 둘 다 토글 수있는 두 가지 온 / 오프에 대한 사용자 정의 :

  1. Checks the IP address of the webserver sending the request and checks it against the trackback URL that’s being provided. 웹 서버의 주소를 확인합니다 요청 및 검사를 보내는 트랙백 url이가 제공되는 반대합니다.
  2. Checks that your URL is actually on the page that the referring URL is sending from. 검사를하는 페이지에있는 귀하가 실제로로부터 추천 링크는 전송합니다.

What I love about it most, is it also marks a trackback by temporarily renaming it to “BLOCKED BY STBV” as highlighted in the example below. 대부분의 사랑에 대해 무엇 그것은 또한 일시적으로 이름을 변경하여, 호두 트랙백 그것을 "stbv에 의해 차단"아래 예제에서 강조 표시합니다. If you mark it as accepted, it will remove the titling and make it active. 로 표시하는 경우 허용되면 그것을 제거하고 활성 제목합니다.

Download Simple Trackback Validation Plug-in . 플러그 -에서 간단한 트랙백 유효성 검사를 다운로드합니다. You can also go to the STBV plug-in homepage and read up about it a lot more. 또한 이동합니다 stbv 플러그 -이 홈페이지를 읽고 그것에 대해 더 많이합니다.

Other Options 기타 옵션
That concludes the setup that I have which is safeguarding me so well that I actually had to wait a week so that I could grab that trackback picture I used above for this post. 설치 프로그램은 끝난 날 너무 잘 보호를해야하는가 사실은 1 주일 기다려야만 할 수 있도록 잡아 위에 예전 사진이 게시물에 대한 트랙백합니다. However, I find it necessary to share with you additional options that I combed through in the process of setting up the redesign of this blog . 그러나, 나는 다른 옵션을 찾을 필요가 사용자와 공유를 통해 내가 빗질을 설정하는 과정에서이 블로그의 재설계합니다. You might also have a earlier or later version of Wordpress in which some of these methods may not work. 수도있습니다 wordpress가의 이전 또는 이후 버전에서 이러한 방법을 일부 작동하지 않을 수도있습니다. Therefore you’ll have a few more options: 따라서 조금 더하셔야 옵션 :

WP-Hardened-Trackback is a lot like STBV. 백린 - 경화 - 트랙백은 많이 닮아 stbv합니다. When I tried it, it didn’t work with 2.6. 나는 그것을 시도했다 때, 그랬 2.6과 함께 사용할 수없습니다. If for whatever reason STBV doesn’t work for you because you havent upgraded yet, try this out. 만약 어떤 이유 stbv havent이기 때문에 당신 업그레 이드 기능이 작동하지 않습니다 그러나,이 상황을 시도합니다.

Math-Comment-Spam-Protection is the exact same idea as what I presented to you in Defense Line 1. 수학 - 주석 - 스팸 메일 - 보호가 똑같은 생각으로 수비 라인에서 당신에게 나의 일 발표합니다. However the plug-in only works for Wordpress 1.5.2, 2.0.x and 2.1. 그러나 플러그 -에 대해서만 작동합니다 wordpress 1.5.2, 2.0.x 및 2.1. I tried it out and had a lot of problems with it which is why I modified my previous solution for another site to fit into Wordpress. 나는 그것을 시도했다가 많은 문제를 나와서 그것을 나의 이전 솔루션을하는 이유는 다른 사이트에 대한 업데이 트를 wordpress에 맞도록합니다. Again, if you’re on an old version, maybe my hack wont work for you. 또, 만약 당신이 오래된 버전, 당신을 위해 일한다는 아마 내 해킹 실거예요. So try this! 그래서 이렇게 해보십시오!

WP-SpamFree is a plug-in that claims to do it all. 백린 - spamfree는이 모든 플러그 - 그 소유권을 주장합니다. It weeds out bots by assuming they cant use JavaScript and Cookies. 그들이 당신에게 그것을 걸러 수 없다 봇 자바 스크립트와 쿠키를 사용합니다. While this will reduce a lot of spam, I feel there is a small enough user base not using JavaScript or cookies, that this might cause a problem for users that want to comment on your form. 많은 스팸 메일이 감소하는 동안, 기분이 자바 스크립트 또는 쿠키를 사용하지 않는 사용자 기반 수있을만큼 작습니다, 그것이이 문제를 일으키는 원인이되는 사용자가 해당 양식에 대한 덧글이 싶어합니다. The point in using this would be so that a user doesn’t have to enter an extra CAPTCHA field. 이것은 매우 중요한를 사용하는 사용자 엑스트라 captcha 필드를 입력하지 않아도합니다. But at the end of the day, if a user cannot add or subtract single digit numbers, I don’t know if their comment would be of much use to anyone anyways. 하지만 하루의 끝에서, 사용자가 단일 수없습니다 자리 숫자를 추가하거나 빼기, 잘 모르겠 그들의 의견은 많은 경우 어쨌든 사용하는 사람. Another reason you might use this is it would be somewhat less technical then copying/pasting the code I have for the CAPTCHA above. 또 다른 이유를 사용할 수있습니다 이것은 그것이 다소 적은 기술을 복사 / 붙여넣은 코드를 captcha에 나는 위의합니다. There is also ton of documentation on their WP-SpamFree’s website . 또한이 문서에 그들의 톤 백린 - spamfree의 웹사이트에있습니다.

Conclusions 결론
I recent read a post on Shoemoney.Com about his 60,000 comments mark . 나는 최근에 게시물을 읽을 shoemoney.com에 대한 그의 60000 코멘트 표시합니다. He commented it with this: 그는 그것을 주석이 :

“Its hard to imagine 60k comments.   Especially when about 80% of them are manually approved with all the spam filters we have.” "저 60k 의견은 상상하기 어렵합니다. 특히 그들은 수동으로 승인을 약 80 %가 스팸 메일 필터의 모든 우리가합니다."

Maybe Shoemoney should implement some of these things to save some time. 어쩌면 이러한 것들의 일부를 구현해야합니다 shoemoney 시간을 절약할 수있습니다. : 꼬인 : If you’re in the same spot, then dont let spam waste your time! 만약에 당신이 같은 장소, 그럼 시간을 낭비 dont 어디 스팸 메일!

This post is part of a series of posts in which I’m telling you how to modify your Wordpress theme the way I have! 이 게시물의 일부를 일련의 게시물을 수정하는 방법을 말하고 나는 당신의 wordpress 테마하는 방법! If you’d like to see anything in particular, comment on the RobMalon.Com Redesign post and I’ll make it part of the series! 아무것도하는 경우를보고 싶다는 특히, 코멘트를 재설계 robmalon.com 게시하고 나는 그것의 일부가 될 시리즈!


1 Trackback(s) 1 트랙백 (영어)

  1. Aug 28, 2008: Web Discoveries : 5 Blogs About Food or Money | Axonoid 2008년 8월 28일 : 웹 발견 : 5 블로그에 대한 음식이나 돈을 | axonoid



Leave A Comment: 남길 코멘트 :

Comments RSS Feed 덧글 피드

이메일

6 - 2 = 6-2 =

Custom Theme by Rob Malon | Content & Design © 2008 - Rob Malon [dot] Com. 사용자 정의 테마로 롭 메론 | 콘텐츠 및 디자인 © 2008 - 롭 메론 [점] com. "));