Allow Image Hotlinking and add a line of code

Discussion in 'PHP' started by bellaweb, Aug 20, 2007.

  1. #1
    Hello,
    I'm new here, and this is my first post.

    The question is slightly different from the usual image hotlinking prevention techniques found out there on the web.

    I would like to allow image hotlinking (I run a weblog with thousands of images, and most are hotlinked), but just add a line of code after the image saying for example "view the post at http://domain.com"

    The same thing to directly linked images on my webserver: there are several sites that link directly to hi-res images and jpegs: this is useless both for the user and for me: the user will see a big picture without descriptions or other stuff, I loose the website tracking... Is it possible to add the same line of code to the linked images, to get that traffic back to the weblog?

    I'm running my website on wordpress on a unix-linux platform, but the hosting provider sucks, and I have not access to nothing: a nice way could be to do it through .htaccess (but I don't know how) or through a file I can upload on the server.

    Any advice? Thank youfor the help :)
     
    bellaweb, Aug 20, 2007 IP