Skip to content

Instantly share code, notes, and snippets.

View wouterdewinter's full-sized avatar

Wouter de Winter wouterdewinter

View GitHub Profile
@wouterdewinter
wouterdewinter / sign.php
Last active October 2, 2019 17:30 — forked from anonymous/sign.php
Tutorial: Securing private content on AWS Cloudfront
<?php
/**
* Sign a private asset url on cloudfront
*
* @param $resource full url of the resources
* @param $timeout timeout in seconds
* @return string signed url
* @throws Exception
*/