內容簡介
這個外掛可以自動封鎖評論中的垃圾郵件,而不需要任何終端用戶輸入或 JavaScript,版本 0.7.7 及以上的版本有一個選項可以添加額外的 JavaScript 檢查,預設為關閉。
從版本 0.7.7 開始,有一個選項可以添加額外的 JavaScript 檢查,預設為關閉。
在某種程度上,它與 webvitaly 的 Anti-Spam 類似,但這不需要用戶輸入任何內容。
如果符合以下任何一條規則,評論會被標記為垃圾郵件:
如果評論是引用型的。
如果載入頁面和評論之間的時間少於10秒。
如果针对此表单的 Session 變量未設置。
如果隱藏的輸入欄位具有不同於“-”的值。
如果評論中包含超過 3 個 URL。
如果引用源未正確設置。
一旦評論被標記為垃圾郵件,如果沒有設置自動刪除選項,將附加一個 json 字符串以顯示為什麼被標記,例如:
{ "is-trackback": 0, "no-session-token": 0, "hidden-field": 1, "number-of-urls": 5, "referer": 0, "too-fast": 1.902538061142 }
翻譯為:
他們更改了隱藏的輸入欄位。
他們在評論中有 5 個 URL。
從載入頁面到提交評論用了 1.9 秒。
此外,時間計算是按表單計算的,因此如果用戶在網站上打開了多個頁面並在短時間內評論了其中 2 個頁面,則不會出現假陽性。
歡迎在 github 上 fork 它並提交 patches / fixes。
外掛標籤
開發者團隊
原文外掛簡介
This plugin plugin blocks spam in comments automatically, without requiring any end-user input or any javascript.
As of version 0.7.7 there’s an option to add an extra javascript check, it’s off by default.
In a way it’s similar to webvitaly’s Anti-Spam however this doesn’t require the user to enter anything at all.
The comment gets marked as spam if any of the following rules are true :
If the comment is a trackback.
If the time between loading the page and commenting is less than 10 seconds.
If the Session variable specific to this form is not set.
If the hidden input field have a different value than “-“.
If the comment includes more than 3 urls.
If the referer isn’t set properly.
Once the comment gets flagged as spam, and if the auto delete option isn’t set, a json string will be appended to it to show why it was marked, for example :
{ "is-trackback": 0, "no-session-token": 0, "hidden-field": 1, "number-of-urls": 5, "referer": 0, "too-fast": 1.902538061142 }
Translates to :
They changed the hidden input field.
They Had 5 URLs in the comment.
It Took 1.9 seconds to submit the comment since the page was loaded.
Also note that the time calculations are per-form, so there are no false-positives if the user has multiple pages open on the site and commented on 2 of them in a short period of time.
Feel free to fork it and submit patches / fixes on github
