前言介紹
- 這款 WordPress 外掛「Really Simple CAPTCHA」是 2009-03-09 上架。
- 目前有 400000 個安裝啟用數。
- 上一次更新是 2025-02-01,距離現在已有 92 天。
- 外掛最低要求 WordPress 6.6 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 有 127 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
captcha |
內容簡介
Really Simple CAPTCHA 並不是獨立的外掛,而是設計可以與其他外掛一起使用的。它最初是為 Contact Form 7 設計製作的,但是您也可以使用它與您自己的外掛搭配使用。
注意:這個產品完全遵循其名稱 "Really Simple" 的設計,亦即,它不是非常安全的。如果您需要完美的安全性,您可以試試其他解決方案。
它是如何運作的?
Really Simple CAPTCHA 不使用 PHP 的「Sessions」來儲存狀態,是和其他 PHP CAPTCHA 解決方案不同的,但是使用臨時檔案來儲存狀態。這讓您可以將其嵌入 WordPress 中,而不用擔心可能出現的衝突。
當您要產生 CAPTCHA 時,Really Simple CAPTCHA 會為其創建兩個檔案;一個是 CAPTCHA 的圖像檔案,另一個是儲存正確答案的文字檔案。
這兩個檔案的檔名有相同(隨機)的前綴,例如 "a7hk3ux8p.png" 和 "a7hk3ux8p.txt"。在這種情況下,例如如果回答者將 "K5GF" 作為回答 "a7hk3ux8p.png" 圖像時,Really Simple CAPTCHA 會計算出 "K5GF" 的雜湊值,並與儲存在 "a7hk3ux8p.txt" 檔案中的雜湊值進行比對。如果兩者匹配,答案就被證實正確。
如何與您的外掛一起使用
注意:以下是提供給外掛開發人員的指示。
首先,創建一個 ReallySimpleCaptcha 類別的實例:
$captcha_instance = new ReallySimpleCaptcha();
您可以按照自己的意願更改實例變數。
// Change the background color of CAPTCHA image to black
$captcha_instance->bg = array( 0, 0, 0 );
如果您對其他變數感興趣,請查看 really-simple-captcha.php。
為 CAPTCHA 產生一個隨機單字。
$word = $captcha_instance->generate_random_word();
在臨時目錄中生成圖像檔案及相應的文字檔案。
$prefix = mt_rand();
$captcha_instance->generate_image( $prefix, $word );
然後展示圖像,並取得回答者的答案。
檢查答案的正確性。
$correct = $captcha_instance->check( $prefix, $the_answer_from_respondent );
如果 $correct 為 true,就進行後續處理。否則,封鎖回答者,因為它看起來似乎不是人類。
最後,請清除臨時圖像檔案和文字檔案,因為它們不再使用。
$captcha_instance->remove( $prefix );
就是這樣。
如果您想要看一個實際的範例,您可以試試 Contact Form 7。
原文外掛簡介
Really Simple CAPTCHA does not work alone and is intended to work with other plugins. It is originally created for Contact Form 7, however, you can use it with your own plugin.
Note: This product is “really simple” as its name suggests, i.e., it is not strongly secure. If you need perfect security, you should try other solutions.
How does it work?
Really Simple CAPTCHA does not use PHP “Sessions” for storing states, unlike many other PHP CAPTCHA solutions, but stores them as temporary files. This allows you to embed it into WordPress without worrying about conflicts.
When you generate a CAPTCHA, Really Simple CAPTCHA creates two files for it; one is an image file of CAPTCHA, and the other is a text file which stores the correct answer to the CAPTCHA.
The two files have the same (random) prefix in their file names, for example, “a7hk3ux8p.png” and “a7hk3ux8p.txt.” In this case, for example, when the respondent answers “K5GF” as an answer to the “a7hk3ux8p.png” image, then Really Simple CAPTCHA calculates hash of “K5GF” and tests it against the hash stored in the “a7hk3ux8p.txt” file. If the two match, the answer is confirmed as correct.
How to use with your plugin
Note: Below are instructions for plugin developers.
First, create an instance of ReallySimpleCaptcha class:
$captcha_instance = new ReallySimpleCaptcha();
You can change the instance variables as you wish.
// Change the background color of CAPTCHA image to black
$captcha_instance->bg = array( 0, 0, 0 );
See really-simple-captcha.php if you are interested in other variables.
Generate a random word for CAPTCHA.
$word = $captcha_instance->generate_random_word();
Generate an image file and a corresponding text file in the temporary directory.
$prefix = wp_rand();
$captcha_instance->generate_image( $prefix, $word );
Then, show the image and get an answer from respondent.
Check the correctness of the answer.
$correct = $captcha_instance->check( $prefix, $the_answer_from_respondent );
If the $correct is true, go ahead. Otherwise, block the respondent — as it would appear not to be human.
And last, remove the temporary image and text files, as they are no longer in use.
$captcha_instance->remove( $prefix );
That’s all.
If you wish to see a live sample of this, you can try Contact Form 7.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Really Simple CAPTCHA」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 2.0 | 2.1 | 2.3 | 2.4 | 2.0.1 | 2.0.2 | trunk | 1.8.0.1 |
延伸相關外掛(你可能也想知道)
Honeypot for Contact Form 7 — Protect Contact Form 7 spam with ease! [100% FREE Anti-Spam Plugin] 》這個簡單的外掛模組增強了優秀的Contact Form 7 (CF7) 外掛,加入基本的蜜罐反垃圾功能,以防止垃圾機器人,而無需使用醜陋的 captcha 碼。, 蜜罐的基本原理...。
Advanced Google reCAPTCHA 》Advanced Google reCAPTCHA可以保護您的WordPress網站免受垃圾評論和暴力攻擊。透過這個外掛,您可以輕鬆地在WordPress評論表單、登入表單和其他表單中加入Go...。
Login Lockdown & Protection 》Login LockDown 記錄每次失敗的登入嘗試的 IP 位址和時間戳記。如果在短時間內來自相同 IP 範圍的嘗試次數超過一定數量,那麼該 IP 位址的所有登入請求都會被...。
Gravity Forms Zero Spam 》這個 Gravity Forms 的外掛使用不會打擾使用者的防 spam 措施來封鎖垃圾郵件。您不需要進行任何設定或組態,只需要啟用這個外掛!, Gravity Forms 蜜罐欄位沒...。
reCaptcha by BestWebSoft 》reCaptcha 外掛是一個有效的安全解決方案,保護你的 WordPress 網站表單免於遭受垃圾郵件攻擊,同時讓真實使用者更容易通過驗證。它可以用在登入、註冊、密碼...。
Contact Form 7 Captcha 》使用這個外掛,您需要透過 Google 網站註冊 API 金鑰:https://www.google.com/recaptcha/admin, 此外掛實現了「我不是機器人」複選框。在生成金鑰時,請選擇...。
CAPTCHA 4WP – Antispam CAPTCHA solution for WordPress 》WordPress 網站最強大又易於使用的驗證碼解決方案。, 在 WordPress 網站的表單上加上驗證碼。使用 CAPTCHA 保護 WordPress 網站和電子商店免受垃圾留言、自動...。
Simple Cloudflare Turnstile – CAPTCHA Alternative 》輕鬆地將 Cloudflare Turnstile 添加到您的 WordPress 網站中的所有表單中,以保護它們免受垃圾郵件的影響!, 一個用戶友好、保護隱私的 reCAPTCHA 替代方案...。
Contact Form 7 Image CAPTCHA, WPForms Image CAPTCHA, Contact Form 7 Spam Image CAPTCHA, WPForms Spam Image CAPTCHA, GDPR 》在你的Contact Form 7表單中添加一個SVG圖像驗證和蜜罐。這個驗證符合GDPR要求,因為圖像是內嵌的SVG格式,所以這個外掛程序不會像Google的ReCAPTCHA那樣通過...。
Wordfence Login Security 》WORDFENCE 登入安全性, Wordfence 登入安全性包含在完整的 Wordfence 插件中發現的功能子集:雙因素驗證、XML-RPC 保護和登入頁 CAPTCHA。, 你正在尋找全面的...。
hCaptcha for WP 》hCaptcha 是 reCAPTCHA 的替代方案,以保護使用者的隱私為主要考量。, 需要阻擋機器人?hCaptcha 提供更佳的防止垃圾訊息和濫用的保護性措施,同時保護使用者...。
ReCaptcha Integration for WordPress 》在您的部落格中整合 reCaptcha,支援無 Captcha 和舊式 recaptcha。, 提供註冊、登入、評論表單和 Ninja Forms 的即插即用整合, 以及透過插件 API 進行自行整...。
WP Captcha 》wp captcha是一個驗證訪客是否為人類,而不是垃圾機器人的外掛。captcha外掛是保護您的WordPress網站表單免受垃圾郵件的最佳安全解決方案。它可用於登錄、註...。
Simple Login Captcha 》這是一個簡單的 WordPress 登入驗證碼外掛。使用者必須在文本欄位中輸入一個隨機的三位數字才能登入。, 正確的數字會透過小型 JavaScript 代碼顯示在欄位上方...。
Gravity Forms No CAPTCHA reCAPTCHA 》這個 WordPress 外掛可以在 Gravity Forms 表單建構器中新增一個「No CAPTCHA reCAPTCHA」欄位類型,並提供淺色/深色主題選項。帶有「No CAPTCHA reCAPTCHA」...。