PHPackages                             benjamin-smith/craft-awscloudfront-private-content - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. benjamin-smith/craft-awscloudfront-private-content

AbandonedArchivedCraft-plugin[Utility &amp; Helpers](/categories/utility)

benjamin-smith/craft-awscloudfront-private-content
==================================================

Create CloudFront signed URLs on the fly to protect your assets.

v1.0.0(9y ago)117PHPPHP &gt;=5.5

Since Sep 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/benjamin-smith/craft-awscloudfront-private-content)[ Packagist](https://packagist.org/packages/benjamin-smith/craft-awscloudfront-private-content)[ RSS](/packages/benjamin-smith-craft-awscloudfront-private-content/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

AWS CloudFront Private Content for Craft CMS
============================================

[](#aws-cloudfront-private-content-for-craft-cms)

Create CloudFront signed URLs on the fly to protect your assets.

Overview
--------

[](#overview)

This plugin utilizes the AWS Cloudfront API to generate signed URLs. For an overview on serving private content via AWS CloudFront, read the [how-to guide on Amazon](http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html).

You can limit access to static assets via,

- setting an expiration date on the URL
- locking the URL down to IP addresses of the end-user

Requirements
------------

[](#requirements)

- PHP 5.5+
- an AWS CloudFront distribution, configured to serve private content
- CloudFront Key Pair private key file ([AWS docs](http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html))

Installation
------------

[](#installation)

To install, follow these steps:

1. Install with Composer (recommended)

```
composer require benjamin-smith/craft-awscloudfront-private-content

```

-OR- download &amp; unzip the file and place the `awscloudfront` directory into your `craft/plugins` directory

-OR- do a `git clone https://github.com/benjamin-smith/craft-awscloudfront-private-content.git` directly into your `craft/plugins` folder. You can then update it with `git pull`

2. Place your CloudFront Key Pair private key in `craft/storage/awscloudfront/cloudfront.pem`.
3. Install plugin in the Craft Control Panel under Settings &gt; Plugins

Configuring
-----------

[](#configuring)

Create a config file in `craft/config/awscloudfront.php` with the following settings:

```
