通過 「蜜罐」,我的意思是或多或少的這種做法:蜜罐技術對垃圾郵件有效嗎?
#Register form
<style>
.hideme{
display:none;
visibility: hidden;
}
</style>
<form action="register.php">
Your email: <input type="text" name="u-email" />
Choose a password: <input type="text" name="passwd" />
<div class="hideme">
Please, leave this field blank: <input type="text" name="email" /> #the comment is for text-browser users
</div>
<input type="submit" value="Register" autocomplete=off />
</form>
//register.php
<?php
if($_POST['email'] != ''){
die("You spammer!");
}
//otherwise, do the form validation and go on.
?>
更多信息here。
顯然,真正的字段命名爲隨機哈希值,和蜜罐字段可以有不同的名稱(電子郵件,用戶,網站,網頁,等..),一個垃圾郵件機器人通常會逐漸填滿。
我喜歡這個技術,因爲它不會導致用戶被CAPTCHA激怒。
你們有沒有人對這種技術有一些經驗?它有效嗎?
做這樣的事情時要小心你的字段名稱。在那裏有多個自動化的表單填充器,而某些意圖誘餌垃圾郵件機器人也可能誘餌表單填充。你試試我給出的表單,你會打電話給我一個垃圾郵件發送者 - 我不知道我的系統填入隱藏的「電子郵件」字段。 – 2010-09-01 22:15:27
好吧,我忘記了蜂蜜領域的'AUTOCOMPLETE = OFF'屬性;但它不支持所有的瀏覽器 – Strae 2010-09-02 07:34:11
相關:http://stackoverflow.com/questions/1577918/blocking-comment-spam-without-using-captcha列出了很多bot /驗證技術,如CAPTCHA,honey pot,askimet等等等等。如果您在使用spambots時遇到麻煩,絕對值得一讀。 – 2010-09-29 19:51:17