Jump to content
PHP論壇人

替换reCAPTCHA人机验证为国内可用镜像


Recommended Posts

国内无法访问 google.com 导致 reCAPTCHA 加载失败,需要将 reCAPTCHA 替换为国内可用镜像来解决无法加载的问题

转到IPB安装目录,使用代码编辑器打开以下四个文件

applications\core\data\theme.xml
applications\core\data\javascript.xml
system\Helpers\Form\Captcha\Invisible.php
system\Helpers\Form\Captcha\Recaptcha2.php

使用替换功能,将四个文件中全部 google.com/recaptcha 替换为 recaptcha.net/recaptcha ,记得保存

replace.png.fe9389b76c3722aa08e5e5ebbc2777d4.png

 

效果 (reCAPTCHA隐形版 和 reCAPTCHA v2)

1507786530_reCAPTCHA.png.56e8b75d8659faf2f8a9435579534570.png

 

1082352582_reCAPTCHAv2.thumb.png.8ba784776897d964abaad2746350b1a1.png

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...