Descriere
hCaptcha is a drop-in replacement for reCAPTCHA that puts user privacy first.
Need to keep out bots? hCaptcha protects privacy while offering better protection against spam and abuse. Help build a better web.
Cum funcționează hCaptcha
The purpose of a CAPTCHA is to distinguish between people and machines via a challenge-response test, and thus increase the cost of spamming or otherwise abusing websites by keeping out bots.
To use this plugin, just install it and enter your sitekey and secret in the Settings -> hCaptcha menu after signing up on hCaptcha.com.
hCaptcha Free lets websites earn rewards while blocking bots and other forms of abuse when a user needs to prove their humanity.
hCaptcha Pro goes beyond the free hCaptcha service with advanced machine learning to reduce the challenge rate, delivering high security and low friction along with more features like UI customization.
Notificări de confidențialitate
hCaptcha is designed to comply with privacy laws in every country, including GDPR, LGPD, CCPA, and more.
With the default configuration, this plugin does not:
- urmărește utilizatorii în secret;
- scrie datele cu caracter personal ale utilizatorilor în baza de date;
- trimite toate datele la servere externe;
- folosește cookie-uri.
Once you activate this plugin, the hCaptcha-answering user’s IP address and browser data may be sent to the hCaptcha service on pages where you have activated hCaptcha protection. However, hCaptcha is designed to minimize data used, process it very close to the user, and rapidly discard it after analysis.
For more details, please see the hCaptcha privacy policy at:
Formulare și module acceptate
- Formular de autentificare
- Formular de înregistrare
- Formular parolă pierdută
- Formular de comentarii
- Post/Page Password Form
- ACF Extended Form
- Asgaros Forum New Topic Form
- Asgaros Forum Reply Form
- Avada Form
- Formular pentru subiecte nou bbPress
- bbPress Reply Form
- Beaver Builder Contact Form
- Beaver Builder Login Form
- Formular pentru creare grupuri BuddyPress
- Formular de înregistrare Buddypress
- Formular de contact 7
- Formularul de contact Divi
- Formular Divi Login
- Download Manager Button
- Formular Elementor Pro
- Fluent Forms
- Forminator
- GiveWP Form
- Gravity Forms
- Formulare Jetpack
- Kadence Form
- Mailchimp pentru WP Form
- MemberPress Login Form
- Formular de înregistrare MemberPress
- Ninja Forms
- Otter Blocks Forms
- Quform Forms
- Sendinblue Form
- Formular de abonare
- Support Candy New Ticket Form
- Ultimate Member Login Form
- Ultimate Member Lost Password Form
- Ultimate Member Register Form
- Formular de autentificare WooCommerce
- Formular de înregistrare WooCommerce
- Formular parolă pierdută WooCommerce
- WooCommerce Checkout Form
- Formular urmărire comandă WooCommerce
- WooCommerce Wishlist
- Formulare WP Fluent
- WPForms Lite
- wpDiscuz
- wpForo New Topic Form
- wpForo Reply Form
Te rog reține
NOTE: This is a community-developed plugin. Your PRs are welcome.
For feature requests and issue reports, please
open a pull request.
We also suggest emailing the authors of plugins you’d like to support hCaptcha: it will usually take them only an hour or two to add native support. This will simplify your use of hCaptcha, and is the best solution in the long run.
Some plugins listed have been superseded by native support, and are included only for legacy purposes.
You should always use native hCaptcha support if available for your plugin.
Please check with your plugin author if native support is not yet available.
Instrucțiunile pentru integrările native populare sunt prezentate mai jos:
Instalare
Sign up at hCaptcha.com to get your sitekey and secret, then:
- Install hCaptcha either via the WordPress.org plugin repository (best) or by uploading the files to your server. (Upload instructions)
- Activează modulul hCaptcha în meniul „Module” din WordPress
- Introdu cheia site-ului și cheia secretă în meniul Setări -> hCaptcha din WordPress
- Activează integrările dorite
Întrebări frecvente
-
Cum folosesc modulul hCaptcha?
-
Modulul hCaptcha suportă automat nucleul WordPress și multe module care folosesc formulare. Trebuie să selectezi formularele acceptate în pagina setări a modulului hCaptcha.
Pentru cazurile care nu sunt standard, poți să folosești scurt-codul
[hcaptcha]
oferit de modul.De exemplu, acceptăm automat Contact Forms 7. Totuși, uneori o temă poate să modifice aceste formulare. În acest caz, poți să adaugi manual scurt-codul
[cf7-hcaptcha]
pentru modulul Contact Forms 7.To make hCaptcha work, the shortcode must be inside the
…
tag.
-
Nu acceptă modulul X. Cum pot beneficia de suport pentru a-l adăuga?
-
Open a PR on GitHub: or just email the authors of plugin X. Adding hCaptcha support is typically quite a quick task for most plugins.
-
Scurt-codul [hcaptcha] are argumente?
-
The shortcode adds not only the hCaptcha div to the form, but also a nonce field. You can set your own nonce action and name. For this, use arguments in the shortcode:
[hcaptcha action="my_hcap_action" name="my_hcap_name"]
și la verificare:
$result = hcaptcha_request_verify( 'my_hcap_action', 'my_hcap_name' );
Consultă și secțiunea „Cum verific automat un formular arbitrar”.
-
Cum adaug hCaptcha la un formular arbitrar
-
Mai întâi, adaugă fragmentul hCaptcha în formular.
Dacă creezi formularul ca un bloc HTML în conținutul articolului, inserează scurt-codul
[hcaptcha]
în interiorul lui. Va arăta așa:<form method="post"> <input type="text" name="test_input"> <input type="submit" value="Send"> [hcaptcha] </form>
Dacă creezi formularul în mod programatic, inserează următoarea instrucțiune în interiorul acestuia:
?> <form method="post"> <input type="text" name="test_input"> <input type="submit" value="Send"> <?php echo do_shortcode( '[hcaptcha]' ); ?> </form> <?php
În al doilea rând, verifică rezultatul hCaptcha când probezi.
$result = hcaptcha_verify_post(); if ( null !== $result ) { echo esc_html( $result ); // Block processing of the form. }
-
Cum verific automat un formular arbitrar
-
Formularele arbitrare ale utilizatorilor pot fi verificate cu ușurință. Doar adaugă
auto="true"
sauauto="1"
în scurt-cod:[hcaptcha auto="true"]
și inserează acest scurt-cod în formularul tău.
Auto-verification works with forms sent by POST on frontend only. Also, it works only with forms in the post content, but we have plans to extend the functionality.
-
Cum pot să blochez hCaptcha pe o anumită pagină?
-
hCaptcha starts early, so you cannot use standard WP functions to determine the page. For instance, to block it on
my-account
page, add this code to your theme’sfunctions.php
file:/** * Filter hCaptcha activation flag. * * @param bool $activate Activate flag. * * @return bool */ function my_hcap_activate( $activate ) { $url = isset( $_SERVER['REQUEST_URI'] ) ? filter_var( wp_unslash( $_SERVER['REQUEST_URI'] ), FILTER_SANITIZE_FULL_SPECIAL_CHARS ) : ''; if ( '/my-account/' === $url ) { return false; } return $activate; } add_filter( 'hcap_activate', 'my_hcap_activate' );
-
Cum să afișezi instantaneu piesa hCaptcha?
-
The plugin loads the hCaptcha script with a delay until user interaction: mouseenter, click, scroll or touch. This significantly improves Google Pagespeed Insights score.
Pentru a încărca instantaneu piesa hCaptcha, poți să folosești următorul filtru:
/** * Filters delay time for hCaptcha API script. * * Any negative value will prevent API script from loading at all, * until user interaction: mouseenter, click, scroll or touch. * This significantly improves Google Pagespeed Insights score. * * @param int $delay Number of milliseconds to delay hCaptcha API script. * Any negative value means delay until user interaction. */ function my_hcap_delay_api( $delay ) { return 0; } add_filter( 'hcap_delay_api', 'my_hcap_delay_api' );
-
Cum să setezi limba hCaptcha în mod programatic?
-
hCaptcha defaults to using the user’s language as reported by the browser. However, on multilingual sites you can override this to set the hCaptcha language to match the current page language. For this, you can use the following filter:
/** * Filters hCaptcha language. * * @param string $language Language. */ function my_hcap_language( $language ) { // Detect page language and return it. $page_language = 'some lang'; // Detection depends on the multilingual plugin used. return $page_language; } add_filter( 'hcap_language', 'my_hcap_language' );
-
Cum să înregistrezi în lista albă anumite IP-uri
-
Poți să folosești următorul filtru:
/** * Filter user IP to check if it is whitelisted. * For whitelisted IPs, hCaptcha will not be shown. * * @param bool $whitelisted Whether IP is whitelisted. * @param string $ip IP. * * @return bool */ function my_hcap_whitelist_ip( $whitelisted, $ip ) { // Whitelist local IPs. if ( false === $ip ) { return true; } // Whitelist some other IPs. if ( '1.1.1.1' === $ip ) { return true; } return $whitelisted; } add_filter( 'hcap_whitelist_ip', 'my_hcap_whitelist_ip', 10, 2 );
-
De ce nu funcționează instalarea pentru WPForms Lite?
-
Pentru a evita un conflict, te rog asigură-te că ai înlăturat cheile reCAPTCHA în WPForms > Setări > reCAPTCHA.
-
Unde pot să găsesc mai multe informații despre hCaptcha?
-
Vezi site-ul nostru.
Recenzii
Contributori și dezvoltatori
„hCaptcha pentru WordPress” este un software open-source. La acest modul au contribuit următoarele persoane.
Contributori„hCaptcha pentru WordPress” a fost tradus în 7 locale. Mulțumim traducătorilor pentru contribuția lor.
Tradu „hCaptcha pentru WordPress” în limba ta.
Te interesează dezvoltarea?
Răsfoiește codul, vezi depozitarul SVN, sau abonează-te la jurnalul de dezvoltare prin RSS.
Istoric modificări
2.6.0
- Tested with WordPress 6.2.
- Tested with WooCommerce 7.4.
- Added compatibility with Asgaros Forum.
- Added compatibility with Support Candy.
- Added Login Form support for MemberPress.
- Added compatibility with GiveWP.
- Added compatibility with Brizy.
- Added activation and deactivation of plugins from the Integrations admin page.
- Fixed error during login with WordPress < 5.4.
2.5.1
- Fixed fatal error with WordPress < 6.1.
2.5.0
- Tested with WooCommerce 7.3.
- Added ability to use the HTMl tag ‘Submit’ in the Contact Form 7.
- Added compatibility with ACF Extended Pro Form.
- Added login attempts limit to Beaver Builder login form.
- Added login attempts limit to Divi login form.
- Added login attempts limit to Ultimate Member login form.
- Added login attempts limit to WooCommerce login form.
- Added optimisation of autoloading to boost performance.
- Added block of launching recaptcha scripts by wpDiscuz.
- Fixed showing the hCaptcha widget on wpForo community page.
- Fixed PHP notice on the General settings page.
- Fixed bug with number of login attempts before showing the hCaptcha.
2.4.0
- Tested with PHP 8.2.
- Plugin now requires WP 5.0.
- Added script loading delay time setting.
- Added compatibility with Otter Blocks Forms.
- Added compatibility with ACF Extended Form.
- Added compatibility with Kadence Form.
- Added compatibility with wpDiscuz.
- Added ability to show hCaptcha after certain number of failed logins.
- Fixed hCaptcha placement in Avada form.
2.3.0
- Tested with WooCommerce 7.2.
- Added compatibility with WC High-Performance order storage (COT) feature.
- Added compatibility with Contact Form 7 v5.7.
2.2.0
- Added Avada theme support.
- Added Beaver Builder support.
- Added compatibility with Wordfence login security.
- Improved spam protection with Contact Form 7.
- Fixed fatal error in standard login form with Ultimate Member active.
- Fixed fatal error with Jetpack sync.
2.1.0
- Tested with WooCommerce 7.1.
- Added Forminator support.
- Added Quform support.
- Added Sendinblue support.
- Added Download Manager support.
- Added support for password protected post/page.
- Added actual messages from hcaptcha.com.
- Added support for Multipage Gravity Form.
- Fixed error messaging in Ninja Forms.
- Fixed ‘hcaptcha is not defined’ issue with Elementor.
2.0.0
- Tested with WordPress 6.1.
- Tested with WooCommerce 7.0.
- Added Settings page with multiple tabs.
- Added setting for whitelisted IPs.
- Added ability to set options network-wide on multisite.
- Fixed Divi contact form bug related to recaptcha compat.
- Fixed bug with WC Wishlist create list form.
- Fixed styles on WordPress Register page.
- Fixed shifting of hCaptcha layout during load.
- Fixed Contact Form hcaptcha invalidation messages.
1.19.0
- Fixed grey left sidebar issue on Elementor edit page.
1.18.0
- Tested with WooCommerce 6.8.
- Added Divi Comment Form support.
- Fixed WPForms Login form support.
- Fixed not valid CSS to prevent a black box issue.
- Fixed invalid hCaptcha error after correction of wrong input on Checkout page.
- Fixed hCaptcha functionality on Elementor Pro edit page when hCaptcha is off for logged-in users.
1.17.0
- Tested with WooCommerce 6.6.
- Added support for Ultimate Member plugin (Login, Register, LostPassword forms).
- Fixed weird black bordered rectangle to the left of hCaptcha challenge.
1.16.0
- Testat cu WordPress 6.0.
- Testat cu WooCommerce 6.5.
1.15.0
- Testat cu WooCommerce 6.4.
- A adăugat suport pentru Gravity Forms.
- A adăugat un filtru pentru IP-urile din lista albă.
- A fost adăugat suport pentru mai multe formulare Ninja pe o singură pagină.
1.14.0
- Testat cu WooCommerce 6.2.
- A fost adăugat suport pentru PHP 8.1.
- A fost adăugat suport pentru formularul de autentificare Divi.
- A adăugat un filtru pentru limbile hCaptcha.
- Changed nonce verification. Now nonce is verified for logged-in users only.
1.13.4
- Testat cu WooCommerce 6.1.
- Added support for hCaptcha in Elementor Popup.
- A corectat autentificarea WooCommerce când hCaptcha este activ pentru autentificarea pe WP.
- A corectat o problemă cu versiunea Safari < 14.
1.13.3
- Testat cu WodPress 5.9 și WooCommerce 6.0.
- A adăugat suport pentru formulare WP Fluent.
- Fixed regex for non-standard Order Tracking form.
1.13.2
- A adăugat suport pentru formularul Urmărire comandă WC non-standard.
- A corectat o eroare fatală cu Elementor Pro 3.5.
1.13.1
- Fixed Divi Contact form in frontend builder.
- A corectat formularul de autentificare WooCommerce.
- A corectat CSS și JS pentru a trece validarea W3C.
- A corectat o problemă la Safari și hCaptcha invizibil pentru formularul cu verificare automată.
- A corectat o problemă la autentificarea prin XML-RPC.
1.13.0
- A fost adăugat suport pentru formularul de contact Divi.
- A fost adăugat suport pentru formularul Elementor Pro.
- A fost adăugat suport pentru formularul de înregistrare MemberPress.
- A adăugat suport pentru formularul Urmărire comandă din WooCommerce.
- A corectat aranjamentul pentru formularul de autentificare WP.
- A corectat o problemă cu inserarea hCaptcha, inclusiv pentru formularele Jetpack.
- A corectat o eroare la regex în funcționalitatea verificare automată, care împiedica înregistrarea formularelor.
1.12.0
- A adăugat funcționalitatea hCaptcha invizibil.
- A adăugat randarea întârziată a hCaptcha pentru a îmbunătăți punctajul pe Google PageSpeed Insights.
- hCaptcha moved inside of Jetpack block form, before submit button.
- A corectat o eroare fatală la tema Divi.
- Fixed – only 1 Contact Form 7 was working on the page.
- Nunicul este verificat acum cu Formular de contact 7.
1.11.0
- A adăugat o verificare automată pentru un formular arbitrar.
1.10.3
- A corectat o problemă la Ninja Forms – hCaptcha nu era afișat.
- Testat cu WordPress 5.8 și WooCommerce 5.5
1.10.2
- A corectat o problemă la Formular de contact 7 – hCaptcha nu era afișat.
1.10.0
- A corectat o problemă la formularul de autentificare WC când era activată opțiunea formular de autentificare WP.
- A adăugat funcționalitatea de a dezactiva modulul pentru utilizatorii autentificați.
- A adăugat un cârlig pentru a dezactiva modulul pe anumite pagini.
- A adăugat funcționalitatea de a rula scriptul și stilurile hCaptcha numai în paginile în care este folosit.
1.9.2
- Fixed issue with WooCommerce on my-account page – hCaptcha was requested even if solved properly.
1.9.1
- A corectat o problemă la Formular de contact 7 – resetează piesa hCaptcha când formularul nu este validat.
1.9.0
- Testat cu WodPress 5.7 și WooCommerce 5.0.
1.8.0
- A adăugat opțiunea de a dezactiva compatibilitatea cu reCAPTCHA (folosește compatibilitatea dacă incluzi atât hCaptcha, cât și reCAPTCHA pe aceeași pagină)
1.7.0
- Este acoperit 100% de testele pentru integrări WordPress.
- Tests run on CI with PHP 5.6 – 8.0, latest WordPress core and latest related plugins.
1.6.4
- Face ca orice formular de contact Jetpack să funcționeze cu Editorul de blocuri
- Testat cu WooCommerce 4.7
1.6.3
- Don’t require challenge for admin comment reply
1.6.2
- Suport pentru WPForms Pro
1.6.1
- Actualizarea standardelor de codare și a documentelor WPCS
1.6.0
- Testat cu WodPress 5.5 și WooCommerce 4.4.
1.5.4
- A adăugat suport pentru WPForms Lite
1.5.3
- WooCommerce Wishlists bug fix
- A actualizat domeniu-text: suport mai bun pentru i18n
1.5.2
- CF7 bug fix: enforce validation
1.5.1
- Actualizează documentația
1.5.0
- Refactor to improve code hygiene, fixes for latest Ninja Forms.
1.4.2
- Fixed comment issue, added WooCommerce Wishlists
1.4.1
- A actualizat informațiile despre testare și a îmbunătățit documentația.
1.3
- Automatic addition of hCaptcha button to Contact Form 7 forms when enabled.
1.2
- Update to Contact Form 7 support. Adds compatibility for version 5.1.3.
1.1
- Corecții minore
1.0
- Plugin Created