Check for headless
This commit is contained in:
parent
9c69a279fd
commit
8a6366a8f9
1 changed files with 1 additions and 2 deletions
|
|
@ -57,8 +57,7 @@ class StartupCheck
|
|||
|
||||
// Check to prevent headless browsers from triggering activity
|
||||
if (Utils::isNinja() && ! $request->phantomjs && strpos($request->header('User-Agent'), 'Headless') !== false) {
|
||||
Utils::logError('[Headless Browser] ' . json_encode($request->headers->all()), 'PHP', true);
|
||||
exit('Headless browsers are not supported');
|
||||
abort(403);
|
||||
}
|
||||
|
||||
// Check if a new version was installed
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue