title: Prevent users from browsing phpdesktop app outside executable?
body: <p>I am developing an php/html/js desktop app using <a href="https://code.google.com/p/phpdesktop/" rel="nofollow">php desktop</a> , when u runs your app, php desktop run a server and listen on a specified or random port like <code>127.0.0.1:65543</code> , if a user open that url inside his/her external browser he/she can access app within browser , i need some trick or tips so my app loads just from embedded browser inside php desktop binary </p>
  
  <p>I could check user agent but it's not safe cause php desktop user agent is </p>
  
  <p><code>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57</code> Safari/537.36</p>
  
  <p>do you know any trick or do you have any experience with php desktop , I would really appreciate any help  </p>