title: Restricting access to CloudFront by IP
body: <p>I want to restrict bucket access to certain IPs. I know how to create a bucket policy from <a href="http://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-3" rel="noreferrer">Restricting Access to Specific IP Addresses</a>.</p>
  
  <p>My question: Can this work with CloudFront? How? Can I allow only certain IPs to access CloudFront?</p>