I have a script image.php, which processes image files and returns the result. The link can look like this: https://example.com/image.php?id=123
, and it finds the corresponding file in the database and returns it to be used:
<code><img src='https://example.com/image.php?id=123' alt='' />
</code>
<code><img src='https://example.com/image.php?id=123' alt='' />
</code>
<img src='https://example.com/image.php?id=123' alt='' />
Is it possible for the image.php file to somehow distinguish the situation when it is used on a website as shown above and when the user clicks ‘show image in new tab’ or just inserts the link directly to the address bar?
Thanks a lot
2