title: How to disable direct access to php file that streams an mp4
body: <p>I have a php file that streams mp4 videos.</p>
  <p>In my website I call the php file in the video tag src.</p>
  <p>the php file is in a different server from website and its url is rewritten : server.xxxx.com/{id}</p>
  <p>everything works perfectly but when I go on this link I can watch and download the video.</p>
  <p>How can stop this from happening? Thanks.</p>