Parcourir la source

detect brave rangebans

lolcat il y a 3 semaines
Parent
commit
74665221c0
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      scraper/brave.php

+ 5 - 0
scraper/brave.php

@@ -1873,6 +1873,11 @@ class brave{
 		
 		if(count($title) === 0){
 			
+			if(strtolower($this->fuckhtml->getloadedhtml()) == "this service is not available in your region"){
+				
+				throw new Exception("Brave rangebanned the IP range");
+			}
+			
 			throw new Exception("Brave returned a malformed page");
 		}