how to disable images direct access ? like xyz.com/images/image.jpg ?

Discussion in 'Scripts' started by -A-, Jul 16, 2008.

  1. #1
    Hi friends,
    i have a small doubt ... i have one gallery site and the site is very big and receiving thousands of uniques and some people are hot linking the images in forums and blogs ... i disabled hot linking( posting images inline in their sites ) because of bandwidth issues and now i have another problem like this ...

    i have ads on that image pages and now some people sending direct links of the pics in their mails and sites ... so site is using lots of bandwidth and really i can't bare it ... so plz anyone can give their valuable info. on my problem ..

    I want to disable direct links of image ... if anyone try to see the image as direct link they have to get a forbidden or error message instead of the image ...

    is their anyway to disable direct image access with .htaccess file or something ..

    plz help me anyone .. this will save my life ... this bandwidth issue is really annoyingme ..

    thanks and hope a fast response.
     
    -A-, Jul 16, 2008 IP
  2. sharpshooter

    sharpshooter Well-Known Member

    Messages:
    161
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    121
    #2
    you can stop hotlinking in cpanel can't you?
    or do what wallpaper sites do & overlay the image with a transparent gif - so the user downloads that instead of the image

    Maybe you need a script for that?
     
    sharpshooter, Jul 17, 2008 IP