title: Restrict access to Amazon S3 static webpage to only registered users
body: <p>I have a PHP e-commence website that sells e-books.</p>
  
  <p>Each e-book is stored on Amazon S3 as a static HTML webpage, which also links to a number of CSS, JS and font files.</p>
  
  <p>For example:
  <a href="https://s3.eu-west-2.amazonaws.com/university-revision-guru/example/index.html#page=1" rel="nofollow noreferrer">https://s3.eu-west-2.amazonaws.com/university-revision-guru/example/index.html#page=1</a></p>
  
  <p>I want to be able to restrict access to this file such that only specific registered users in my database can access it. How can I do this?</p>
  
  <p>It seems like Amazon S3 permission property only allows access to specific AWS accounts, IP addresses OR completely public. Therefore, it is clear I will probably have to do some work on the application end. </p>
  
  <p>How can I restrict access to an Amazon S3 static webpage such that only specific registered users in my database can access it?</p>