feat(blockbot): ensure good agent are whitelisted and add uptimerobot #945

Merged
valvin1 merged 2 commits from feat/blockbot_uptimerobot into develop 2020-01-19 05:53:25 +01:00
Showing only changes of commit e7f7868c88 - Show all commits

View file

@ -79,9 +79,8 @@ function blockbot_init_1(App $a) {
if (!Config::get('blockbot', 'good_crawlers')) {
$agents = array_merge($agents, $good_agents);
}
else{
foreach($good_agents as $good_agent){
} else {
foreach ($good_agents as $good_agent) {
if (stristr($_SERVER['HTTP_USER_AGENT'], $good_agent)) {
return;
}