dismiss greeter, better view counting

This commit is contained in:
2018-07-29 12:40:29 +02:00
parent a79b5ae7d8
commit 6d7fdca6d2
6 changed files with 85 additions and 12 deletions
+38
View File
@@ -17,6 +17,44 @@ class Controller extends BaseController
ValidatesRequests::validateWithBag as validateWithBag_orig;
}
const BOT_USER_AGENTS = [
// generic
'crawler',
// cli / scripting
'httpie',
'curl',
'wget',
'lwp-request',
'python-requests',
'python-urllib',
'libwww',
'go-http-client',
// commercial
'googlebot',
'google (+',
'bingbot',
'slurp',
'duckduckbot',
'baiduspider',
'yandexbot',
'sogou',
'exabot',
'facebot',
'ia_archiver',
'linkdexbot',
'gigabot',
'adsbot',
// misc
'gigablast',
'phpcrawl',
'mj12bot',
'simplepie',
'sitelockspider',
'scoutjet',
'grub.org',
'mastodon', // mastodon fetching previews
];
// Hacks to allow recursive nesting of validations in string and array format
public function makeValidator($data, $rules, $messages = array(), $customAttributes = array())