Skip to content
Snippets Groups Projects

Modification library/Class/UserAgent.php : ajout des Bots mauibot,ahrefsbot et semrushbot

Merged Luc DEUFFIC requested to merge lde-fix_UserAgent.php into master
Compare and
1 file
+ 2
2
Preferences
Compare changes
@@ -32,7 +32,7 @@ class Class_UserAgent {
public function isBot() {
return 0 !== preg_match('/(bot\/|sistrix|voilabot|slurp)/i',
return 0 !== preg_match('/(bot\/|sistrix|voilabot|slurp|mauibot|ahrefsbot|semrushbot)/i',
$this->_user_agent_string);
}
@@ -83,4 +83,4 @@ class Class_UserAgent {
or preg_match($regex_match, strtolower($this->_user_agent_string)));
}
}
?>
\ No newline at end of file
?>