1、原因
- ❌ 谷歌广告跟踪代码有个https://www.google.com/recaptcha/api2/aframe 接口,打开要22秒,直接导致谷歌人机验证打不开
- ❌ 拖垮wordpress网站速度
百度了好久也没有找到解决方法,这个不好解决。只能是通过谷歌浏览器的插件重定向到https://recaptcha.net/recaptcha/api2/aframe,才能解决这个问题。
问题是要安装谷歌插件才能解决,宝塔的重定向也没有。这个是真的烦。
2、Header Editor下载和配置
在谷歌插件商店搜索Header Editor,然后下载安装。
按照下面的截图进行配置
![Header Editor recaptcha](https://cdn.saiita.com.cn/wp-content/uploads/2023/10/1697468339-Header-Editor-recaptcha.png?x-oss-process=image/interlace,1/quality,Q_95)
匹配规则:https://www.google.com/recaptcha/api2/aframe
重定向:https://recaptcha.net/recaptcha/api2/aframe
然后在打开博客首页,F12查看https://recaptcha.net/recaptcha/api2/aframe接口,问题就解决了。
![谷歌人机验证接口-200](https://cdn.saiita.com.cn/wp-content/uploads/2023/10/1697468740-%E8%B0%B7%E6%AD%8C%E4%BA%BA%E6%9C%BA%E9%AA%8C%E8%AF%81%E6%8E%A5%E5%8F%A3-200.png?x-oss-process=image/interlace,1/quality,Q_95)
本作品采用知识共享署名-相同方式共享 4.0 国际许可协议进行许可。
暂无评论
要发表评论,您必须先 登录