php - Redirect and hide target URL -


i want implement website youtube, these real urls of videos has hidden.

when user comes in, , php webpage authenticate user, , redirect user real url of video. problem how can redirect url , hide real video url, or other ways prevent real url of videos exposed?

i don't know if got point, looking this?

$video_url = $user_is_authenticated ? $video_url : $authentication_url."?returnurl=".$video_url; echo "<a href='$video_url'>video title</a>"; 

this way, if user authenticated, send him real video url, otherwise login page seen instead.

if don't want users see url can use session variables during authentication.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -