Amazon S3 : hide location & prevent hotlinking of files
$10-30 USD
Completed
Posted over 10 years ago
$10-30 USD
Paid on delivery
I use Amazon S3 to host different kind of files (especially images, audios, videos, PDFs, ZIPs).
I link these files from several websites of mine. Images are used on webpages. ZIPs and PDFs are downloadable from specific pages. Audios and videos are played on specific pages.
I want to prevent people from 1) sharing links and 2) using my bandwidth.
- Files should be linkable only from my websites.
i.e. : hotlinking these files from domain names that don't belong to me should not be possible.
- URI to ZIPs, audios and videos should not display in visitor browsers (ex. : [login to view URL] would display for example as [login to view URL]), and real location should not be revealed when using softwares like download managers.
Your work : either explain me a way to do this with Amazon existing tools or build a PHP script that does the job.
I need something very simple. No fancy interface. No database required. Installation doesn't have to be unique (if multiple installations is required, then no problem, even inside a given domain name). The script should not be encrypted.
Should not prevent visitors from downloading files and should not slow down the downloading process, independantly of file size (some could be heavy).
I use several website/domain names. Pages and files could be located in directories. Pages are either HTML or PHP. Files could be heavy (up to 500 MB).
Thank you for reading.