Google-recaptcha
簡介:給人類方便給bot困難
(類似於csrf token的功能)
#1. 安裝
https://www.google.com/recaptcha
如果用react.js可以使用https://github.com/appleboy/react-recaptcha克服dom沒出現但recaptcha執行造成無法顯示的情況
#2.使用
文件:https://developers.google.com/recaptcha/docs/verify
使用react-recaptcha套件的範例
將recapcha置中
#3.在server端接收到後傳給google驗證
把verifyCallback拿到的值傳
Node.js example
(記得要用POST querystring方式傳)
成功會回傳如下
Last updated
Was this helpful?