May be I'm asking a wrong question, I just don't know how to define it more specific, sorry about that.
I want to create links (src in img tag) that looks like that : "bla-bla.com/7e0cfd63-dfc1-4038-a859-ff201dea7b65" and be able to "decode" it back.
Reason why>
My links (src in img tag) are looking like that now "myDomain/somefolder/image1.jpg" , so if user will change "image1.jpg" to "image2.jpg" he will get a "direct access" (I think it's called like that).
So I want to prevent "direct access", but still be able to share links.
May be I'm over-complicating the issue and there is another - easy way to do it, or some php extension for this job, please let me know.
Server: win 2012 r2 Apache + php5 + MySQL
P.S.
"7e0cfd63-dfc1-4038-a859-ff201dea7b65" - this is a UUID, right? I saw it in youtube video links.
Google search gave a lot of results for UUID/GUID scripts/technics/how it works and so on, but I was not able to find an implementation for links...
P.P.S
if you go to my profile image here on stackoverflow:
https://www.gravatar.com/avatar/4141ef5b3f1196534e59f42f76fe0d0f?s=48&d=identicon&r=PG&f=1
and change f to d you will get a different image
https://www.gravatar.com/avatar/4141ef5b3f1196534e59f42f76fe0d0d?s=48&d=identicon&r=PG&f=1
This is what i don't want to happen.