Generate a Amazon S3 expiring URL based on your key and secret. Prevents hotlinking to your media.
Fixed a bug reported bu lots of user on my blog. Emile Bourquin came up with a solution.
I have tested it and it still works for me (with CNAME buckets, people who do not use CNAME buckets have had problems).
Please comment on the blog if you have any issues.
– Added expire option
– Forgot some debug code that i removed now.