Disable hotlinks for my image host

Discussion in 'Scripts' started by buxcro.com, Jun 7, 2009.

  1. #1
    I want to disable hotlinks on my image host on my big pictures but leave the thumbnails so they can be hotlinked. Now all my thumbnails have _thumb in their name.
    I tryed editing the .htaccess file with this

    RewriteEngine on
    
    RewriteCond %{HTTP_REFERER} !^$
    
    #allow hotlinking for thumbnails
    RewriteCond %{REQUEST_URI} !_thumb
    
    #allowed website to hotlink  (don't forget to add your own site !!)
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com(/)?.*$ [NC]
    
    #display no-hotlink.jpg instead of the requested image
    RewriteRule \.(jpg|jpeg|gif|png|bmp|ico)$ http://www.domain.com/no-hotlink.jpg [NC,R,L]
    Code (markup):
    This did not work, its like my .htaccess does nothing. I blocked all the images in .htaccess and i could still see them on my image host.

    So im looking for another way to do this.
    Thx for any help guys you might give.
     
    buxcro.com, Jun 7, 2009 IP
  2. timborris

    timborris Banned

    Messages:
    73
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you using mihalism script ?

    send me a pm i can help you.
     
    timborris, Jun 7, 2009 IP
  3. buxcro.com

    buxcro.com Active Member

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    65
    #3
    So nobody knows how to help me?
     
    buxcro.com, Jun 14, 2009 IP
  4. krazymind

    krazymind Banned

    Messages:
    409
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    krazymind, Jun 14, 2009 IP