detect ddg captcha

This commit is contained in:
2026-05-27 21:54:36 -04:00
parent 1e3f3d82fd
commit 5f112737b8

View File

@@ -492,6 +492,17 @@ class ddg{
"form"
);
foreach($forms as $form){
if(
isset($form["attributes"]["id"]) &&
$form["attributes"]["id"] == "challenge-form"
)
}{
throw new Exception("DuckDuckGo returned an image captcha");
}
foreach(array_reverse($forms) as $form){
$this->fuckhtml->load($form);