title: Amazon Cloudfront and Password Protected Website
body: <p>I have a development/staging site which serves all it's images through Amazon Cloudfront and S3.</p>
  
  <p>I am in need of password protecting the website now. Going through cPanel i can successfully do so, but now all my images are coming up blank (401 unauthorised response) on the site as they too require the same password credentials.</p>
  
  <p>How can i get around the issue of serving images through amazon and password protecting the site?</p>
  
  <p>As an alternative i also tried blocking access by IP rather than a password but that gives me the same outcome with a 403 (forbidden) server response on all images</p>