I have a static HTML site hosted on Amazon S3.
Ideally I want to be able to limit access to a staging site in the same way as with a .htaccess/.htpasswd file.
I understand that bucket policies can be used to limit access (I have already used one to make the bucket contents publicly accessible), but I can't see any way to limit access.
In an ideal situation I would like an auth prompt - but appending a token to a URL would also work.