detect brave rangebans
This commit is contained in:
1 parent
89b8be5147
commit
74665221c0
1 file changed
+5
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user