Hidding redirect for bots.

This commit is contained in:
sergiotarxz 2023-05-12 18:37:39 +02:00
parent a5fae9996f
commit 4000092501

View File

@ -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);
}