I have files hosted on a CDN and would like to protect the files from being easily accessed from outside my (wordpress) website.
I have seen sites where for example it would have an image like this perfectly accessible:
https://cdn.mydomain.com/photos/2023/199/myphoto.jpg?s=r4ewre316431312348168
But then if you tried to access directly like this:
https://cdn.mydomain.com/photos/2023/199/myphoto.jpg
It would come back as Unauthorized.
What is this magic?
Adding strings to images