It is not easy to hide URL to your image
once it has been shown in one page.
I wrote a script one time, that could hide any file.
It was shown once. In a webpage.
Then in a short while after the link to the file/image
would not work.
I based it on creating files that were used in page
as temporary files with strange unique names that was created randomly.
Only php script itself would know the real file and the real name.
I say it was not a simple feature to get to work 😃
But it can be done.
You save a copy the real file to this special /directory/
This is a directory that is open and anyone can access.
Must be so that stuff will show in webpages.
And when copy it, you generate some freaking random name:
eivjbhwyvuyiyhkb438968578.jpg
Next time somebody wants to see that page, there is new preaking name for that image.
It changes all the time and so Google would get real headache :evilgrin:
when people search for that image and find nothing.
You can arrange so that the old phreaking file is automatically deleted
when a new request for that file come in the page.
Or you can clean up that special short time cache /directory/
after those file has become 5 hours old or whatever.
To find out how old a file is, is easy using:
[man]filemtime/man .... shows the time() Unix timestamp when file last was changed/created
🙂