Skip to content
Snippets Groups Projects
Commit 1f1a5812 authored by Luc DEUFFIC's avatar Luc DEUFFIC
Browse files

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

parent d9b28fd8
Branches
Tags
4 merge requests!2869Master,!2841Dev#71435 bonus piwik est devenu matomo,!2838Modification library/Class/UserAgent.php : ajout des Bots mauibot,ahrefsbot et semrushbot,!2822Dev#71435 bonus piwik est devenu matomo
Pipeline #5039 passed with stage
in 47 minutes and 30 seconds
......@@ -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
?>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment