Hidding redirect for bots.
This commit is contained in:
parent
a5fae9996f
commit
4000092501
@ -28,6 +28,9 @@ sub index {
|
||||
}
|
||||
|
||||
sub rickroll($self) {
|
||||
if ($self->req->headers->user_agent =~ /bot/i) {
|
||||
return $self->render(text => '');
|
||||
}
|
||||
$self->res->headers->location('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
|
||||
$self->render(text => '', status => 302);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user