mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-02-02 01:54:13 +00:00
disallow toggleStar method for crawlers
This commit is contained in:
parent
178ab23031
commit
d1e9e72401
@ -318,6 +318,12 @@ class UserController extends AbstractController
|
||||
);
|
||||
}
|
||||
|
||||
// Block crawler requests
|
||||
if (in_array($request->getClientIp(), explode('|', $this->getParameter('app.crawlers'))))
|
||||
{
|
||||
throw $this->createNotFoundException();
|
||||
}
|
||||
|
||||
// Init target user
|
||||
if (!$userTarget = $userService->getUser($request->get('userId')))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user