AWS Documentation
Amazon CloudFront
Developer Guide (API Version 2010-11-01)
Search:
Entire Site
AMIs
Articles & Tutorials
AWS Product Information
Case Studies
Customer Apps
Developer Tools
Documentation
Public Data Sets
Release Notes
Solution Providers
Sample Code & Libraries
Welcome
Introduction to Amazon CloudFront
What Is Amazon CloudFront?
CloudFront Concepts
Architectural Overview
How CloudFront Delivers Content
Locations of CloudFront Edge Servers
Paying for CloudFront
CloudFront or Amazon S3?
Controlling User Access to Your AWS Account
Overall Flow for Using Amazon CloudFront
Migrating from Amazon S3 to CloudFront
Working with Objects
Format of Links to Objects
Creating a Default Root Object
Versioning Objects
Range GETs
Object Expiration
Object Invalidation
Distribution of New Content to Edge Locations
Object Eviction
Object Content-Type
Serving Compressed Files
Restricting Access to Objects Based on the Geographic Location of End Users (Geoblocking)
Working with Distributions
Types of Distributions
Actions on Distributions
Parts of a Distribution
Creating a Distribution with a Custom Origin
Requirements and Recommendations for Using Amazon EC2 and Other Custom Origins
Using CNAMEs
Updating a Distribution's Configuration
Deleting a Distribution
Streaming Media on Demand
Request and Response Behavior, and Supported HTTP Status Codes
Request and Response Behavior for Amazon S3 Origins
Request and Response Behavior, and Supported HTTP Status Codes for Custom Origins
Using a Signed URL to Serve Private Content
Overview of Private Content
How to Serve Private Content Using a Signed URL
Securing Your Content in Amazon S3
Restricting End User Access
Signature Code, Examples, and Tools
Create a URL Signature Using Perl
Create a URL Signature Using PHP
Create a URL Signature Using C# and the .NET Framework
Create a URL Signature Using Java
GUI Tools for Signature Generation
Creating Secure HTTPS Connections
Access Logs
General Usage Data
Making API Requests
Endpoints
AWS Support for Programming Languages
REST Requests
REST Responses
Authenticating REST Requests
CloudFront Tutorials
Live Streaming Using CloudFront and Adobe Flash Media Server
Overview of Live Streaming with Amazon Web Services
Creating an Amazon Web Services Account
Creating an Amazon EC2 Key Pair
Subscribing to Adobe Flash Media Server
Setting up Route 53
Creating an AWS CloudFormation Stack for Live Streaming
Verifying that Adobe Flash Media Server Is Running
Setting Up Adobe Flash Media Live Encoder to Publish a Live Stream
Embedding Flash Media Playback for an Amazon CloudFront Live Stream in a Web Application
Deleting an AWS CloudFormation Stack for Live Streaming
Frequently Asked Questions
Additional Documentation
Restricting Access to Files in a CloudFront Distribution Based on Geographic Location (Geoblocking)
Overview of Restricting Access to Files in a CloudFront Distribution Based on Geographic Location
Creating an Amazon Web Services Account
Sample Code for Digital Element
Java Sample Code for Digital Element
.NET Sample Code for Digital Element
PHP Sample Code for Digital Element
Sample Code for MaxMind
Java Sample Code for MaxMind
PHP Sample Code for MaxMind
.NET Sample Code for MaxMind
Frequently Asked Questions
Additional Services and Documentation
Amazon CloudFront Resources
Document History
AWS Documentation
»
Amazon CloudFront
»
Developer Guide
»
CloudFront Tutorials
»
Restricting Access to Files in a CloudFront Distribution Based on Geographic Location (Geoblocking)
Did this page help you?
Yes
No
Tell us about it...
Restricting Access to Files in a CloudFront Distribution Based on Geographic Location (Geoblocking)
By Parviz Deyhim, Paul Duffy, and John Mancuso — December 2011
Topics
Overview of Restricting Access to Files in a CloudFront Distribution Based on Geographic Location
Creating an Amazon Web Services Account
Sample Code for Digital Element
Sample Code for MaxMind
Frequently Asked Questions
Additional Services and Documentation
Javascript is disabled or is unavailable in your browser.
To use the AWS Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.