Augie (a creative real estate investor ) presented a spam prevention method idea which we’ve been talking about under a previous post this past week: HowTo Eliminate Wordpress Trackback Comment And Pingback Spam . Augie (twórczy nieruchomości inwestora) przedstawiła metody zapobiegania spam ideę, która nam się mówić o mocy poprzedniego po tym ostatnim tygodniu: HowTo Eliminowanie Wordpress Trackback komentarz i Pingback Spam. The basic idea is to provide an extra input field which is hidden to a user when viewed normally from the browser. Podstawowym założeniem jest zapewnienie dodatkowego pola, które jest ukryte dla użytkownika, kiedy zwykle oglądany z przeglądarki. This means if you check your form data when a submission is being processed, you can determine if the field is still empty. Oznacza to, jeśli sprawdzasz swoje formy przekazywania danych, gdy jest przetwarzany, możesz określić, czy pole jest nadal pusta. If it is filled out, then a bot must have auto filled the field. Jeśli jest wypełnione, to bot musi automatycznie wypełnione pola.

Spam Field Details Spam Field Szczegóły

The naming convention used on a hidden field should be named “email” or “url” to trick the bot. W konwencji nazewnictwa używane na ukryte pole należy nazwie "email" lub "URL" w celu wyłudzenia bot. Your real email field will then of course need to be named something else. Twój e-mail prawdziwe pole będzie oczywiście trzeba mieć nazwę coś innego. A small price to pay for less house cleaning. Mała cena za mniej czyszczenia domu.

Another key to all of this is to wrap your trap (haha) in a DIV so that the a bot cant tell that the field is hidden. Innym kluczem do tego wszystkiego jest owinąć swoje pułapki (haha) w taki sposób, że DIV botem cant powiedzieć, że pole jest ukryte. Marking it with type=”hidden” on the input tag itself is a bit of a giveaway. Oznakowanie to z type = "hidden" na wyjściu znak jest trochę z prezentów. Assigning an id or class to the div and specifying display:none; would cause the bot a lot of extra work which most probably aren’t programmed for. Przypisywanie ID lub klasy do div i określając display: none; spowodowałoby w bot wiele dodatkowych prac, które najprawdopodobniej nie są planowane na rok. You could also use a built in id or class directly on the div to specify it as a hidden field. Można również użyć wbudowanego w identyfikator lub klasy bezpośrednio na div określić je jako ukryte pola.

Hidden Input Field Code Ukryte pola Kod

Here is an example of what your code would look like: Oto przykład tego, co kod będzie wyglądać następująco:

  1. CSS code would look like this:
  2. #email {
  3. display: none
  4. }
  5. OR if you're doing it by the div:
  6. .specialfield {
  7. display: none
  8. }
  9. Your form would look something like this:
  10. <form method="post" action="yourformprocessor.php">
  11. <div class="specialfield"><input id="email" type="text"></div>
  12. <input id="realemail" type="text">
  13. </form>

Using Hidden Fields Używanie ukrytych pól

It isn’t too much of a stretch to add this to a custom solution or implement it into a Wordpress comments or form plugins because id’s and classes are assigned to input fields by default. Nie ma zbyt wiele o naciągnąć, aby dodać do niestandardowego rozwiązania lub wdrożenia go w Wordpress uwag lub formie wtyczek, ponieważ id i klas są przypisane do pola domyślnie. If you’re not already using a form plugin check out: Jeśli nie masz już na formularzu wtyczki check out:

cforms II or Contact Form 7 (my preference). cforms II lub Formularz kontaktowy 7 (my preference).

If I get enough requests I’ll write a post which explains how to implement this into Wordpress comments in a similar manner in which I setup the Enhanced Numbered Equation CAPTCHA . If I get enough wniosków I'll napisać wiadomość, która wyjaśnia, jak wdrożyć tę uwag do Wordpress w podobny sposób, w jaki mogę ustawić Ściślejsza Numerowanie równań CAPTCHA.

The More Spam Defense The Better Im więcej spamu Obrony Better

I don’t have a lot of experience in using spam bots, but this is a promising way to enhance our line of defense against spam. Nie mam wiele doświadczenia w korzystaniu spamerami, ale to jest obiecującym sposobem na wzmocnienie naszej linii obrony przed spamem. More importantly, its not intrusive on a users browsing experience. Co ważniejsze, jej nie przeszkadzać użytkownikom na przeglądanie. Unlike a CPATCHA, it requires a valid visitor to do nothing! W odróżnieniu od CPATCHA, to wymaga ważnych gościem robić nic!

If you have any thoughts or comments, about this spam technique, leave them below. Jeśli masz jakieś uwagi lub myśli, o tym spam techniki, pozostaw je poniżej.


1 Trackback(s) 1 Trackback (s)

  1. Nov 26, 2008: WordPress Wednesday: Comment Spam | BlueFur.com 26 listopada 2008: WordPress środa: Komentarz Spam | BlueFur.com



Leave A Comment: Zostaw komentarz:

Comments RSS Feed Komentarze RSS

7 Plus 1 = 7 Plus 1 =

Custom Theme by Rob Malon | Content & Design © 2009 - Rob Malon [dot] Com. Custom Theme by Rob Malon | Design & Content © 2009 - Rob Malon [dot] com. "));
"));