Block Google Image Frames...Good, Bad, Possible?

Discussion in 'Google' started by 2 FN LOW, Dec 28, 2007.

  1. #1
    I have a wordpress blog which tends to draw some traffic in Google Images...My impressions on Adsense dont add up and impressions on other ads not add up and i have read this is all cause of the people viewing images in Google Images...

    If i remember correctly i read somewhere that there is something you can do to stop where...Where the pictures will sill show up as thumbnails in Google Images but when the person clicks on the thumbnail the page will load for a second and then automatically load the actually website not in a frame. Am i correct about this or pulling out of my a*s?

    And if this is possible is it good to do this or is it bad in your opinion...Any info will help a lot, thank you for reading.
     
    2 FN LOW, Dec 28, 2007 IP
  2. ljastangs21

    ljastangs21 Banned

    Messages:
    894
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sounds like a good option if it is possible. I have a few sites that get some traffic from google images, it would be nice if it loaded my site instead of image.
     
    ljastangs21, Dec 28, 2007 IP
  3. dealsonweb

    dealsonweb Peon

    Messages:
    277
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    1. If you want to break frame, use simple js code to break frame

    
    <SCRIPT LANGUAGE="JavaScript">
    if (window != top) top.location.href = location.href;
    </SCRIPT>
    
    
    Code (markup):
    No disadvantage as far as I know. Yahoo has JS disabled, so code won't work on yahoo image search.


    2. If you want people not to load only image when clicking thumbnail on framed page...
    Doable using your .htaccess

    
    RewriteEngine On
    # directory "imgs" where your images are - can change to whatever you want
    RewriteBase   /imgs/
    # if referer is google
    RewriteCond %{HTTP_REFERER} ^http:\/\/images.google.co
    # your php code convert.php will display images in html and then will do js redirect to full page
    RewriteRule  ^(.*.)(gif|jpg|png)$ convert.php?img=$1$2 [L]
    
    Code (markup):
    Disadvantage is, google might ban you for showing different content to googlebot and user.
     
    dealsonweb, Dec 29, 2007 IP
  4. necromanc

    necromanc Peon

    Messages:
    297
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    So by using a script like this to redirect people from the image to the article with that image is permited by Google ? I've just noticed a very big website using this. Take a look here, and press on an image to see what I'm talking about.
     
    necromanc, Feb 5, 2008 IP