Google images - Protect Images from Bandwidth Theft

Discussion in 'Apache' started by sarpras2005@yahoo.co.in, Jul 12, 2009.

  1. #1
    Some one use images loaded on my server to their post. I use below code to protect Images from Bandwidth Theft.

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://articles2u.com [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.articles2u.com [NC]
    RewriteRule .*.(gif|jpeg|jpg|swf|png)$ - [NC,F]


    I want to display all images on google image SE.

    It create any problem on google image SE.
     
    sarpras2005@yahoo.co.in, Jul 12, 2009 IP
  2. Jack Zero

    Jack Zero Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I tried to find out about this a while ago but couldn't get a clear answer. If you want to be safe you can just allow Google images to hotlink.
    My .htaccess looks like this:

    RewriteEngine on

    RewriteCond %{HTTP_REFERER} !^http://mysite.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://mysite.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.mysite.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://images.google.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://images.google.com$ [NC]

    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
     
    Jack Zero, Jul 15, 2009 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    i think this can be cheated by sending fake refferers rite ?
     
    Bohra, Jul 15, 2009 IP