Have you ever gone to your Akismet plug-in in Wordpress and NOT had spam to clear out? هل سبق لك أن ذهبت الى حسابك في 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! لماذا حتى اسمحوا المتطفلين تلتهم الخاص بك المعالج مع مزود استفسارات اضافية! 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 : عدد كلمة التحقق
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! لقد معاد تجهيز هذا القانون أساسا لاستخدام وورد! 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. ملاحظة أنا باستخدام وورد 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
  3. //FIND: <textarea name="comment" id="comment" rows="10" cols="35" wrap="virtual" tabindex="4"></textarea>
  4. //AFTER any closing tags for your paragraphs or label setup, add:
  5. function numbercapcha ( ) {
  6. $firstnum = rand ( 5 , 8 ) ;
  7. $secondnum = rand ( 1 , 4 ) ;
  8. $coinflip = rand ( 1 , 2 ) % 2 ;
  9. if ( $coinflip == 0 ) {
  10. $math = $firstnum $secondnum ;
  11. $operators = array ( " " , "Added To" , "Plus" ) ;
  12. $operatorschoice = rand ( 1 , 3 ) % 3 ; ، $operatorschoice = rand ( 1 , 3 ) % 3 ;
  13. } else {
  14. $math = $firstnum - $secondnum ;
  15. $operators = array ( "-" , "Minus" ) ;
  16. $operatorschoice = rand ( 1 , 2 ) % 2 ; ، $operatorschoice = rand ( 1 , 2 ) % 2 ;
  17. }
  18. echo $firstnum . " " . $operators [ $operatorschoice ] . " " . $secondnum . " = <input type= \" text \" name= \" number \" maxlength= \" 2 \" size= \" 5 \" id= \" numcapcha \" style= \" width: 25px; \" >" ;
  19. return $math ;
  20. }
  21. // Contiue with your theme and use this snippit of PHP to generate the input field:
  22. // <? $_SESSION['capcha'] = numbercapcha(); ?>
  23. // Example usage shown below:
  24. ?>
  25. < p >< label for = "security" > Security </ label >< ? $_SESSION [ ‘capcha’ ] = numbercapcha ( ) ; ? ></ p >
  26. <?php
  27. //FILE: /wp-comments-post.php (in the root directory)
  28. //FIND: $comment_type = ”;
  29. //This should be on like 63 in Wordpress 2.6
  30. //AFTER ADD:
  31. if ( 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.’ ) ) ;
  36. }
  37. ?>

The above code may differ slightly with the HTML only. رمز أعلاه قد تختلف قليلا مع هتمل فقط. 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: Here'sa سريعة جدا لبعض howto المغلق التصميم للحصول على انك بدأته و، رغم أنه ليس بالضرورة أن يكون كل ذلك لا يصدق على الفور ولع :

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. التحقق من أن كلمة التحقق من صحة الأول يوفر الجهد المبذول من تجهيز أي شيء آخر حتى تبين أن كلمة التحقق قد دخلت بشكل صحيح.

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 . وأود أيضا أن موقع كيف Akismet وDefensio إنشاء بريد مزعج آخر خط الدفاع حين العودة. If you’re not already using one, try them out. إذا كنت لا تستخدم بالفعل واحدة ، في محاولة منهم. 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 بلج وورد في أم تنزيل Defensio مكافحة البريد المزعج وورد في بلج

Defense Line 3: Simple Trackback Validation 3 خط الدفاع : بسيطة Trackback المصادقة
Blocking Trackback and Pingback spam has never been so easy. Trackback عرقلة و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. وورد المستخدمين للغاية عرضة لإساءة استخدام لهذا النوع من البريد المزعج التي أصبحت أكثر شعبية لاختيار spammers للهجوم.

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. الشيكات الملكية الفكرية للتصدي لخدمة الشبكة العالمية ، وطلب إرسال الفحوص أنها ضد trackback عنوان هذا يجري تقديمها.
  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. ما أحب عن أنها أكثر ، هو ، كما أنه يمثل trackback بها مؤقتا إلى إعادة تسمية "سدت STBV" كما هو مبين في المثال أدناه. If you mark it as accepted, it will remove the titling and make it active. إذا كنت علامة أنها قبلت ، وسوف تزيل تمليك وجعلها نشطة.

Download Simple Trackback Validation Plug-in . تنزيل البسيطة Trackback في التحقق من صحة التوصيل. 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. ويخلص إلى أن الإعداد أن لدي هو الذي لي الحفاظ على ما يرام فعلا أن الأول كان الانتظار اسبوعا حتى أنني أستطيع أن أعبر عن انتزاع أن كنت trackback الصورة أعلاه لهذا المنصب. 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. هل يمكن أن يكون لها أيضا في وقت سابق أو في وقت لاحق من النسخة التي وورد في بعض من هذه الأساليب قد لا تعمل. Therefore you’ll have a few more options: ولذلك سيكون لديك المزيد من الخيارات قليلة :

WP-Hardened-Trackback is a lot like STBV. الفسفور الابيض - مصلب - Trackback هو مثل الكثير 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. الرياضيات بين التعليق بين حماية البريد المزعج هو بالضبط نفس الفكرة التي ما قدمت لكم في خط الدفاع 1. However the plug-in only works for Wordpress 1.5.2, 2.0.x and 2.1. ومع ذلك فإن المكونات في وورد لا تعمل إلا ل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. حاولت بها ، وكان لها الكثير من المشاكل مع أنه هو السبب في أنني تعديل تقريري السابق حل لموقع آخر لتنسجم مع وورد. 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. النقطة في استخدام هذا سيكون حتى أن المستخدم لا يملك لدخول اضافية كلمة التحقق الميداني. 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. وثمة سبب آخر هل يمكن استخدام هذا هو أنه سيكون أقل التقنية ثم نسخ / لصق الشفرة لقد لكلمة التحقق أعلاه. 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! إذا كنت في نفس المكان ، ثم لا أميل اسمحوا البريد المزعج تضيعوا وقتكم!

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! وهذه الوظيفة هي جزء من سلسلة من الوظائف التي اقول لكم كيفية تعديل وورد الخاص بك موضوع الطريق لدي! 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 إعادة التصميم بعد وسوف جعله جزءا من سلسلة!


2 Comment(s) On 2 التعليق (ق) وفي

"HowTo Eliminate Wordpress Trackback Comment And Pingback Spam" "HowTo القضاء وورد Trackback تعليق وPingback البريد المزعج"
  1. MyAvatars 0.2 Lynn - Sep 13, 2008 لين -- سبتمبر 13 ، 2008

    Maybe I shouldn’t, but these days I just rely on my spam filter (Akismet) to catch it all. ربما لا ينبغي لي ، ولكن في هذه الأيام أنا فقط الاعتماد على بلدي فلتر البريد المزعج (Akismet) للقبض على كل شيء. I used to use Simple Trackback Validation on a several of the blogs I have, but it stopped stuff from going directly to the spam filter and actually caused me more work when I had to delete the trackbacks. كنت استخدام بسيط Trackback المصادقة على العديد من بلوق لي ، لكنه توقف الاشياء من الذهاب مباشرة الى فلتر البريد المزعج فعلا وتسبب لي المزيد من العمل عندما اضطررت إلى حذف تركبكس.

    I’ve finally set Akismet to delete anything older than 30 days automatically, and I almost never check the spam section of my blogs anymore. لقد قمت أخيرا مجموعة Akismet لحذف أي شيء مضى عليها أكثر من تلقائيا خلال 30 يوما ، وأنا تقريبا أبدا التحقق من البريد المزعج الجزء من بلدي بلوق بعد الآن.

    I’m sure I’m running a risk of missing a good comment, but the time savings has been worth it. أنا متأكد أنا ادارة المخاطر من المفقودين جيدة تعليق ، لكن الوقت وفورات قد يستحق ذلك. Not to mention, I’ve quit burning my eyes with some of the filth that I used to have to skim through before deleting the spam comments and trackbacks manually. لا أذكر ، لقد استقال حرق عيني مع بعض من القذارة التي كنت قد لتصفح قبل حذف البريد المزعج تعليقات وتركبكس يدويا.

  2. MyAvatars 0.2 Rob - Sep 14, 2008 روب -- سبتمبر 14 ، 2008

    In that case, it still would be good to have both, but just reverse the order in which the code executes. وفي هذه الحالة ، فإنه لا يزال سيكون من الجيد على حد سواء ، ولكن فقط عكس الترتيب الذي ينفذ القانون. So far, I haven’t run into the problem you’ve mentioned, but I might write a howto/plugin and post on how to do what you’re asking for sometime :). حتى الآن ، أنا لم تواجه هذه المشكلة التي قمت المذكورة ، لكني قد كتابة howto / البرنامج المساعد وبعد على كيفية القيام بما كنت طالبا لبعض :).



Leave A Comment: ترك التعليق :

Comments RSS Feed التعليقات آر إس إس

8 Added To 3 = 8 ويضاف إلى 3 =