0

I have a file manager website running and some users said they'd like to be able to embed the image preview page directly into img tags (on forums etc).

Lets take this page as an example: http://push.anukthewolf.com/a/Screenshot_2015-06-03-08-29-03.png

Even though it has an image extension, it's still a html (well, php) page. Could this script somehow detect if its requesting client is a browser parsing an img tag where its url has been used as source? If that's the case I would output the image directly instead of the website. In every other case, the website should be sent.

Jannis Becker
  • 27
  • 1
  • 6

0 Answers0