yes,
I am sure this can be a security issue.
It is better you use some alias list.
This will restrict what locations can be redirected to.
Only those you approve of.
And nobody can submit whatever links.
There are many ways to do this.
Maybe an array like this
<?php
$urlalias = array(
'alias1' => 'link1',
'alias2' => 'link2',
);
$location = "";
foreach( $urlalias AS $alias => $link ){
if ( $geturl == $alias ){
$location = $link;
break;
}
}
if( !empty($location)){
header('Location: '.$location );
exit();
}
// else header to my default location
?>