Image redirection to url - Not hotlinking
August 24, 2016 09:59PM
How do differentiate if the image is access via <img src='img.jpg'> and http://somesite.com/img.jpg (directly in the url?)

If the img is directly accessed in the url of web browser, i want that to be redirected to website home page or some other page where the image belongs.

http://i683.photobucket.com/albums/vv191/angelinesona/Animhorse.gif

If i enter this image url in browser url, it will go to some html page and displays this image. I want this to be done in with the help of nginx.
Please kindly advice.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 214
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready