gpt4 book ai didi

php - 在网站中使用 reCAPTCHA PHP 插件的最佳简单方法

转载 作者:可可西里 更新时间:2023-10-31 23:37:36 25 4
gpt4 key购买 nike

我已经使用 google api 和下面的代码在我的网站上获取验证码,但无法在 php 网站上获取它。我使用了下面的代码

<html><body>
<?
require_once ("recaptchalib.php");
// get a key at http://www.google.com/recaptcha/mailhide/apikey
$mailhide_pubkey = '';
$mailhide_privkey = '';
?>
The Mailhide encoding of example@example.com is
<?
echo recaptcha_mailhide_html ($mailhide_pubkey,
$mailhide_privkey,
"example@example.com");
?>.
<br>
The url for the email is:
<?
echo recaptcha_mailhide_url ($mailhide_pubkey,
$mailhide_privkey,
"example@example.com");
?>
<br>
</body></html>

请告诉我在 Php 网站上获取验证码的简单和最佳步骤。

最佳答案

不要按照这种方法,它有点难以管理。

如果您只是想集成 Google New reCaptcha 那么只需 register here

并生成一个 key 并在您的表单中进行管理。您可以点击以下链接了解更多详情。

Google reCaptcha Using PHP | Only 2 Step Integration

关于php - 在网站中使用 reCAPTCHA PHP 插件的最佳简单方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39443731/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com