Looking for the easiest way to give a video embed code without giving the actual video file url using either php or java js. Any help is appreciated
yourdomain.extension/watch?v=123 Go to watch.php: $code = $_GET['v']; //123 //123 is some unique hash of video file. In PHP, do query: //SELECT url FROM videos WHERE hash = {$code} And then you have the url. If you're really cool, place the video outside the public_html folder. Now you can also disable direct hotlinking.