Created
November 15, 2011 06:37
-
-
Save wimleers/1366338 to your computer and use it in GitHub Desktop.
.htaccess file to only allow downloads from Amazon CloudFront.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options +FollowSymLinks -MultiViews | |
RewriteEngine On | |
SetEnvIf User-Agent ^Amazon Cloudfront$ cdn | |
Order Deny,Allow | |
Deny from all | |
Allow from env=cdn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment