Google Image Traffic

Discussion in 'Google' started by bluemanteam, Mar 7, 2008.

  1. #1
    I'm looking to use htaccess to prevent image hotlinking.

    Will this in any way affect google image traffic as they do show preview of images surfers perform image searches?
     
    bluemanteam, Mar 7, 2008 IP
  2. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #2
    if you block all of the sites, it will effect google image bot but you can allow it with your .htaccess
     
    trichnosis, Mar 7, 2008 IP
  3. bluemanteam

    bluemanteam Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Would you have htaccess code that is google friendly but prevents anyone else from hotlinking.

    Here's what I found on the net

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://([-a-zA-Z0-9_]+\.)?domain.com.*$ [NC]
    RewriteRule \.(jpe?g|gif|bmp|png|ico)$ - [F,NC,L]
     
    bluemanteam, Mar 7, 2008 IP
  4. billybw

    billybw Peon

    Messages:
    1,012
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I did this, but had problems at first because my web hosting company had implemented their own hotlink protection without my knowledge, and there was some kind of incompatibility until I got it straighened out. So you need to be careful.
     
    billybw, Mar 8, 2008 IP