I am a .net developer and haven’t done any PHP work ever. But i use WordPress and for some time now i been looking for a plugin that could generate a URL for Amazon S3 that is “signed” and will expire after a certain amount of time.
So i figured i had to take care of this myself. And as i said. I’m a total newbie in both PHP and WordPress plugins so my plugin is probably really really stupid and i would be happy if somebody could send suggestions how to make it better. But it works.
How does it work?
You just add
[S3 bucket=yourbucket text=your link text]the_object_name.txt[/S3]
to your post or page and it will generate a expiring urls that no leecher can link to. If you don’t supply and link text it will not generate a link and just print the URL. I use the same bucket names as URL’s (like netplay.whoa.nu) and if you use Amazon standard urls you must change this.
Download: Amazon S3 URL Generator
Thanks to this guy for the PHP script i based this on.