I\'d like to allow anyone to play a video located in my s3 on my site as the src
on a tag but not allow people to us
Instead of directly linking to your S3 files, can you use PHP as a proxy so that the end user never sees the actual S3 URL, and you can verify the referer more easily? You would probably need some sort of database for this though, so you can link an ID to an S3 file. For example (disregarding security measures):
This can be saved as get_file.php or whatever you want, and you can just put links like http://my-site.com/file/get_file.php?id=120381
in your HTML instead.
To go a step further, you can use a .htaccess file to route requests like http://my-site.com/file/120381.mp4
to http://my-site.com/file/get_file.php?id=120381
.
I'm not sure how well this would work, and the PHP code I provided was just an example to help convey my idea; it is not perfect code so please don't downvote me just for that.