|
|
|
@ -1564,6 +1564,12 @@ class TorrentController extends AbstractController
@@ -1564,6 +1564,12 @@ class TorrentController extends AbstractController
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Block crawler requests |
|
|
|
|
if (in_array($request->getClientIp(), explode('|', $this->getParameter('app.crawlers')))) |
|
|
|
|
{ |
|
|
|
|
throw $this->createNotFoundException(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Init torrent |
|
|
|
|
if (!$torrent = $torrentService->getTorrent($request->get('torrentId'))) |
|
|
|
|
{ |
|
|
|
@ -1643,6 +1649,12 @@ class TorrentController extends AbstractController
@@ -1643,6 +1649,12 @@ class TorrentController extends AbstractController
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Block crawler requests |
|
|
|
|
if (in_array($request->getClientIp(), explode('|', $this->getParameter('app.crawlers')))) |
|
|
|
|
{ |
|
|
|
|
throw $this->createNotFoundException(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Init torrent |
|
|
|
|
if (!$torrent = $torrentService->getTorrent($request->get('torrentId'))) |
|
|
|
|
{ |
|
|
|
@ -1764,6 +1776,12 @@ class TorrentController extends AbstractController
@@ -1764,6 +1776,12 @@ class TorrentController extends AbstractController
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Block crawler requests |
|
|
|
|
if (in_array($request->getClientIp(), explode('|', $this->getParameter('app.crawlers')))) |
|
|
|
|
{ |
|
|
|
|
throw $this->createNotFoundException(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Init torrent |
|
|
|
|
if (!$torrent = $torrentService->getTorrent($request->get('torrentId'))) |
|
|
|
|
{ |
|
|
|
|