dismiss greeter, better view counting
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user