dbteam / dbteaminvisiblerecaptcha
eZ Publish 4.x / eZ Publish 5 旧版扩展,用于集成谷歌不可见 reCAPTCHA。
Requires
This package is not auto-updated.
Last update: 2024-09-29 05:07:55 UTC
README
=================================
项目页面: https://github.com/dbteam/dbteaminvisiblerecaptcha
本扩展基于 Piotrek Karas 的 eZ Human CAPTCHA - SELF s.c.
功能
========
Protect your forms using Google Invisible reCAPTCHA from BOTs
for eZ Publiesh 4 / eZ Publish 5 legacy
要求
============
- PHP ^5.3.10 (5.3.10 <= PHP < 6) (PHP 7.x 应该也能正常工作,没有错误)
- eZ Publish ^4.4 或 ^5.x (旧版)
- jQuery Core 1.7.2 或更高版本 https://code.jqueryjs.cn/jquery/
- 谷歌 reCAPTCHA 站点密钥和密钥(每个站点访问可以有自己的密钥对)
并将其放入invisible_re_captcha.ini
,请参阅/读取文件
<thisExtension>/settings/invisible_re_captcha.ini
https://www.google.com/recaptcha/admin
下载
Suggested the newest version, example: "^1.4.1" (composer notation) (see Git tags).
- Git: https://github.com/dbteam/dbteaminvisiblerecaptcha
- packagist.org: https://packagist.org.cn/packages/dbteam/dbteaminvisiblerecaptcha
- projects.ez.no: http://projects.ez.no/dbteaminvisiblerecaptcha
安装和配置
===================
在
settings/override/site.ini.append.php
[ExtensionSettings]
...
ActiveExtensions[]=dbteaminvisiblerecaptcha
...
INI
invisible_re_captcha.ini
,请参阅/读取文件
<thisExtension>/settings/invisible_re_captcha.ini
请不要更改扩展名称。
重新生成自动加载,清除缓存。
在终端中
<ezpublish-root-dir>$ php bin/php/ezpgenerateautoloads.php
<ezpublish-root-dir>$ php bin/php/ezcache.php --clear-all
将内容属性 DB-Team 不可见 reCAPTCHA
添加到您的内容类,并在此属性上检查 信息收集器
。必需
不必必要。
待办事项/已知问题
===================
技术说明
===============
在文件 invisible-recaptcha-error.log
中存储支持的问题,怀疑的 BOT IP
var/log/invisible-recaptcha-error.log
如果您需要其他更好的 JS 表单验证,只需覆盖 dbTeamInvisibleReCAPTCHAService.validate()
。
它在全局范围内。有关更多信息,请阅读 invisibleReCAPTCHATool.js
文件中 dbTeamInvisibleReCAPTCHAService.validate
的注释。
PS:默认网络浏览器验证已禁用,我必须这样做,我不能与谷歌 reCAPTCHA JS 一起使用。也许有人知道如何保留它?
示例
作者
- Radosław Z
许可
版权 (c) 2017 DB-Team。此存储库在 GNU GPL v2.0 许可下发布。