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 (luova kiinteistöalan sijoittaja) esitti roskapostiblogi ehkäisy menetelmä ajatus, jota olemme puhuneet alle edellisen työpaikkansa viime viikolla: HowTo Poista Wordpress Trackback Comment And Pingback Spam. The basic idea is to provide an extra input field which is hidden to a user when viewed normally from the browser. Perusajatuksena on tarjota ylimääräistä panosta alalla, joka on piilotettu sen käyttäjälle, kun Katsotuimmat yleensä peräisin selaimen. This means if you check your form data when a submission is being processed, you can determine if the field is still empty. Tämä tarkoittaa sitä, jos olet tarkistanut lomaketietoja kun jättämistä on käsitelty, voit määrittää, onko alalla on vielä tyhjä. If it is filled out, then a bot must have auto filled the field. Jos se on täytetty, sitten bot on auto täynnä alalla.

Spam Field Details Spam Kenttä Details

The naming convention used on a hidden field should be named “email” or “url” to trick the bot. The Naming Convention käyttää piilotettu kenttä olisi nimeltään "email" tai "url" huijata robotin. Your real email field will then of course need to be named something else. Sinun todellinen email alalla sitten tietenkin on nimeltään jotain muuta. A small price to pay for less house cleaning. Pieni hinta vähemmän talo puhdistus.

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. Toinen keskeinen kaikki tämä on wrap your ansa (hehe) on DIV jotta a bot kallistuksen kertoa, että kenttä on piilotettu. Marking it with type=”hidden” on the input tag itself is a bit of a giveaway. Merkintä se type = "hidden" on the input tag itsessään on hieman kylkiäinen. 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. Määrääminen tunnus tai luokka on div ja täsmennetään display: none; aiheuttaisi robotin paljon ylimääräistä työtä, jotka todennäköisesti eivät ole ohjelmoitu. You could also use a built in id or class directly on the div to specify it as a hidden field. Voit myös käyttää rakennettu id tai luokka välittömästi div täsmentää sitä piilotettu alalla.

Hidden Input Field Code Piilotettu kirjoituskentästä Koodi

Here is an example of what your code would look like: Tässä on esimerkki siitä, mitä koodi voisi näyttää tältä:

  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 Käyttämällä Piilotetut kentät

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. Se ei ole liikaa venytellä lisätä tämän mukautetun ratkaisun tai toteuttaa se johonkin Wordpress kommentteja tai muodossa plugins koska id: n ja luokkia on osoitettu syötekenttiä oletuksena. If you’re not already using a form plugin check out: Jos et ole jo lomakkeella plugin check out:

cforms II or Contact Form 7 (my preference). cforms II tai Yhteydenottopyyntölomake 7 (my suosituimmuusjärjestyksessä).

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 . Jos saan tarpeeksi pyyntöjä I'll kirjoittaa postitse, jossa selitetään, miten ne toteuttavat tämän huomioon Wordpress esitetty samalla tavalla jota en setup laajennetun Numeroitu Equation CAPTCHA.

The More Spam Defense The Better Lisää Spam Defense 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. Minulla ei ole paljon kokemusta käyttää roskapostia robotteja, mutta tämä on lupaava tapa lisätä rivi torjumaan roskapostia. More importantly, its not intrusive on a users browsing experience. Vielä merkittävämpää on, että sen ei tungetteleva on käyttäjille selaaminen. Unlike a CPATCHA, it requires a valid visitor to do nothing! Toisin kuin CPATCHA, se edellyttää voimassa vierailiat tee mitään!

If you have any thoughts or comments, about this spam technique, leave them below. Jos sinulla on ajatuksia tai kommentteja tästä roskapostin tekniikkaa, jätä ne alle.


1 Trackback(s) 1 Trackback (s)

  1. Nov 26, 2008: WordPress Wednesday: Comment Spam | BlueFur.com Marraskuu 26, 2008: WordPressissä Keskiviikko: Kommentti Spam | BlueFur.com



Leave A Comment: Jätä kommentti:

Comments RSS Feed Kommentit RSS-syöte

6 Plus 4 = 6 Plus 4 =

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