Skip to main content

detect_captcha

Function detect_captcha 

Source
pub fn detect_captcha(fields: &[FormField]) -> bool
Expand description

检测表单字段中是否包含验证码。

通过字段 name、id、class、placeholder 中的关键字(captcha、recaptcha、g-recaptcha 等)判断。