Описание
Invisible reCaptcha для WordPress — это очень мощный плагин, позволяющий легко внедрить новую Invisible reCaptcha от Google на ваш сайт с WordPress.
Notice: As of version 1.3.0, this plugin is now maintained by @berrypress.
External service disclosure
This plugin is designed to integrate reCAPTCHA by Google into your site, which is an external third-party service used to implement security and fraud prevention measures. The plugin may communicate with the reCAPTCHA service via API and/or by loading assets on your site’s frontend, resulting in data transfer with the reCAPTCHA service when the site frontend is accessed and/or when reCAPTCHA validation is triggered by to user actions. In addition to authentication and operational data such as API keys and reCAPTCHA identifiers, the service may receive information from your and your users’ browser and network, such as their IP address, user agent, etc.
Use of the reCAPTCHA service is subject to the Google Cloud Terms of Service, Service Specific Terms, Google Privacy Policy, and the Cloud Data Processing Addendum.
This plugin is not affiliated with or endorsed by Google.
Список возможностей
WordPress и Invisible reCaptcha
- Login form protection - annihilates Brute Force attacks
- Registration form protection
- Comments form protection
- Forgot Password form protection
WooCommerce и Invisible reCaptcha
- Login form protection
- Registration form protection
- Product Review form protection
- Lost Password form protection
- Reset Password form protection
Contact Form 7 Invisible reCaptcha
— Protect your Contact Form 7 forms with Invisible reCaptcha
Gravity Forms Invisible reCaptcha
— Protect your Gravity Forms with Invisible reCaptcha
Ultra Community Invisible reCaptcha
— защита формы авторизации
— защита формы регистрации
BuddyPress и Invisible reCaptcha
— защита формы регистрации BuddyPress с помощью Invisible reCaptcha
Совместимость
При использовании WP Multisite вы можете активировать плагин как на одном сайте, так и на всей сети.
How-To
Check out the Invisible reCAPTCHA v2 Guide: https://developers.google.com/recaptcha/docs/invisible
- Create a reCAPTCHA v2 site using the Invisible reCAPTCHA badge option: https://www.google.com/recaptcha/admin/create
- Copy the Site Key and Secret Key from the Google reCAPTCHA admin console.
- In WordPress, go to Settings > Invisible reCaptcha > Settings.
- Enter your Site Key and Secret Key.
- Save the settings.
- In the settings, choose which forms should be protected by reCAPTCHA.
- Visit a page containing a protected form and verify that the reCAPTCHA badge is displayed and that form submissions are working correctly.
Расширение возможностей Invisible reCaptcha
Примеры хуков для интеграции Invisible reCaptcha с любыми другими плагинами или собственными формами
Действия
- google_invre_render_widget_action - renders the recaptcha widget
Фильтры
- google_invre_is_valid_request_filter - used to check if Google approved the request (returns bool true/false)
- google_invre_widget_output_html_filter - used to change the recaptcha widget output
- google_invre_language_code_filter - used to change the badge/challenge language code
- google_invre_badge_position_filter - used to change the badge position (possible returning values are: 'bottomright', 'bottomleft', 'inline')
- google_invre_ajax_submit_classnames - used to change the CSS class names of submit buttons that trigger reCaptcha on AJAX forms (default: array('wpcf7-submit', 'invisible-recaptcha-do-submit'))
- google_invre_is_gf_excluded - used to exclude a Gravity Forms form from protection (receives bool $is_excluded and int $form_id)
Constants (wp-config.php)
- INVISIBLE_RECAPTCHA_OVERRIDE - define as true to treat every request as valid (e.g. automated tests, staging) or as false to treat every request as invalid. Leave undefined for normal behavior.
Примеры хуков Invisible reCaptcha
-
Для добавления Invisible reCaptcha к любой форме
Вызовите функцию
do_action(‘google_invre_render_widget_action’);
в любом месте до тэга закрытия формы -
Как проверить подтверждение отправки формы
$is_valid = apply_filters(‘google_invre_is_valid_request_filter’, true);
if( ! $is_valid )
{
// код обработки ошибки
}
else
{
// продолжение успешной работы
} -
Как поменять язык значка/задания
add_filter( ‘google_invre_language_code_filter’, ‘myprefix_change_recaptcha_language’ );
function myprefix_change_recaptcha_language($language_code){
$language_code = ‘fr’; // French
return $language_code;
}
Смотрите полный список кодов языков reCaptcha
Note: This plugin requires PHP 7.1 or higher to be activated.
Отзывы
Участники и разработчики
«Invisible reCaptcha» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:
Участники«Invisible reCaptcha» переведён на 16 языков. Благодарим переводчиков за их работу.
Перевести «Invisible reCaptcha» на ваш язык.
Заинтересованы в разработке?
Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.
Журнал изменений
1.3.2
- Fixed conflict with two-factor authentication plugins (Wordfence, Two Factor and others): the second step of the login no longer requires a new reCAPTCHA token. A short-lived hash tied to the user is issued once reCAPTCHA has passed.
- Added support for
wp_login_form()via thelogin_form_bottomfilter. - Added the
INVISIBLE_RECAPTCHA_OVERRIDEconstant to force the validation result from wp-config.php. - Added the
google_invre_ajax_submit_classnamesfilter to customize the submit button class names used for AJAX forms. - Contact Form 7 and Gravity Forms: reCAPTCHA is now placed at the bottom of the form, and an existing spam verdict is no longer overridden by a valid token.
- WooCommerce: earlier validation errors on login, registration and password reset are no longer overridden.
- Fixed the reCAPTCHA widget being rendered for the wrong form when forms are nested.
- Fixed a fatal error (infinite recursion) when Contact Form 7 protection was enabled.
- Fixed
Undefined property: WP_Error::$IDwarnings when a login was rejected. - PHP 8.x: removed the
spl_autoload_register()deprecation notices and the dynamic property deprecations. - Fixed a possible TypeError on the settings page when no page object is available.
- Minimum supported PHP version is now 7.1.
- Updated «Tested up to» to WordPress 7.1.
1.3.1
- Removed inactive WooCommerce checkout protection code (commit details).
- Removed unused licensing and external module-loading infrastructure.
- Declared PHP 7.0 as the minimum supported PHP version.
- Updated WordPress compatibility metadata.
- Added a link to the Google Privacy Policy to the external service disclosure.
- Corrected the setup documentation to specify Invisible reCAPTCHA v2.
1.3.0
- PHP 8 compatibility
- Removed the custom CSS feature
1.2.3
- Исправлена проблема «класс не найден» Проблема с AJAX после обновления
1.2.2
- Исправлена совместимость с WPML 4.x — многоязычным плагином WordPress.
1.2.1
1.2
- Исправлена ошибка с Fixed Contact Form 7 Cannot contact reCAPTCHA. Check your connection and try again (нет соединения с reCAPTCHA. Проверьте соединение и повторите попытку)
- Улучшена защита Gravity Forms
1.1
- Исправлена ошибка Namespace в PHP
- Устранено предупреждение PHP при первом сохранении настроек
- Меню плагина перемещено в Настройки
- Устранено предупреждение PHP при первом сохранении настроек
- Меню плагина перемещено в Настройки
1.0.8
- Добавлена интеграция с плагином Ultra Community Membership
- Исправлена ошибка редиректа при сбросе пароля
- Исправлена ошибка CSS значка не работает на страницах авторизации/регистрации
1.0.6
- Исправлена ошибка при авторизации и регистрации в WooCommerce
- Добавлена работа Invisible reCaptcha с BuddyPress
1.0.5
- Исправлена ошибка с Contact Form 7, обнаруженная @silvercode
- Добавлена работа Invisible reCaptcha с Gravity Forms
1.0.4
- Совместимость с мультисайтами
- Работает с сетевым интерфейсом
- Исправлено предупреждение в PHP7
1.0.3
- Добавлены хуки WordPress для использования с другими формами и плагинами
1.0.2
- Добавлена настройка позиции/типа значка
- Добавлена пользовательская настройка CSS значка
- Добавлен выбор языка
1.0.1
- Исправлено предупреждение в PHP 5.4+
1.0
- Первоначальная версия
