Dynamic watermarking of hotlinked images?

Discussion in 'PHP' started by live-cms_com, Sep 29, 2007.

  1. #1
    I run a wallpapers website and some people hotlink the images, I don't want to stop the hotlinking all together but I think it would be nice to have a watermark on each image. I don't want watermarks to be displayed on the images if they're being viewed from my domain but if they're being hotlinked I want a watermark to display.

    I know you can add a watermark to an image with PHP but is it possible to do this dynamically with htaccess on hotlinked images?
     
    live-cms_com, Sep 29, 2007 IP
  2. stOx

    stOx Notable Member

    Messages:
    6,426
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    230
    #2
    stOx, Sep 29, 2007 IP
  3. live-cms_com

    live-cms_com Notable Member

    Messages:
    3,128
    Likes Received:
    112
    Best Answers:
    0
    Trophy Points:
    205
    Digital Goods:
    1
    #3
    live-cms_com, Sep 30, 2007 IP
  4. kendo1979

    kendo1979 Peon

    Messages:
    208
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yup, on a hotlinked image, passed it to a script first which place the watermark

    let say an image of abc.jpg is being hotlinked.

    your htaccess will redirect it to addmywatermark.php?image=abc.jpg

    on your addmywatermark.php

    add the code to place your watermark on images.
     
    kendo1979, Oct 2, 2007 IP
  5. shimon333

    shimon333 Guest

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    why not use in all your websites with watermark? i see a lot of graphic-cartoon-picture sites that had watermark in all of their pictures.
     
    shimon333, Jan 7, 2008 IP
  6. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #6
    wouldn't that ruin the layout?
     
    Kaizoku, Jan 7, 2008 IP