title: How to restrict access to images on server, except via mobile devices?
body: <p>I am building a simple android app for viewing images located in public_html/preciousImages which is password-protected folder on a hosted server. </p>
  
  <p>I understand that I'll need to use HTTP authentication for providing user/pass (<a href="https://stackoverflow.com/questions/7288526/android-http-authentication">Android HTTP Authentication </a>), however, these credentials, when embedded in code, can be easily hacked using debugging apps like Charles; and then used to leech/hot-link the images.</p>
  
  <p>So I want to implement another layer of security and looking for a way to allow access to the images only from mobile devices (android for now; iOS and android in the future).</p>
  
  <p>Is this the right line of thinking? Or is there a better way to do it (server settings, php, anything...)? I am not worried about compromising small number of images (downloading one-by-one on mobile device) but would really like to avoid them being leeched en-mass. </p>
  
  <p>Thanks in advance.</p>