I want that everyone who I give the link to the file can access it. But no one can find out my links.
Is there a secure way to do this?
I want that everyone who I give the link to the file can access it. But no one can find out my links.
Is there a secure way to do this?
Suppose you have a bucket in aws and you want to hide the links from the persons who're accessing it then you can use the CNAME method.
Example CNAME Method
This example uses www.johnsmith.net as the bucket name and homepage.html as the key name. To use this method, you must configure your DNS name as a CNAME alias for bucketname.s3.amazonaws.com.
The URL is as follows:
http://www.johnsmith.net/homepage.html
The example is as follows:
GET /homepage.html HTTP/1.1
Host: www.johnsmith.net
However, there are some restrictions with this method. The bucket name must be dns compliant.
The CNAME DNS record should alias your domain name to the appropriate virtual hosted–style host name. For example, if your bucket name and domain name are images.johnsmith.net, the CNAME record should alias to images.johnsmith.net.s3.amazonaws.com.
images.johnsmith.net CNAME images.johnsmith.net.s3.amazonaws.com.
SSL CASE
When using virtual hosted–style buckets with SSL, the SSL wild card certificate only matches buckets that do not contain periods. To work around this, use HTTP or write your own certificate verification logic.
More can be read here
https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html
Let me know if it solves your concern.