Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Google bandwidth problem  (Read 3928 times)

0 Members and 1 Guest are viewing this topic.

worzelb

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Google bandwidth problem
« on: October 20, 2006, 12:16:27 pm »

Hi,
  My problem is that Google is hammering my sites bandwidth. Nearly a gigabyte so far this month.

  I know how to block Google's access to the gallery but I don't really wan't to do that as the
gallery contains a lot of keywords that help in my site's ranking. What I would like to find out is
if I can allow Google to spider the text on the gallery but to disallow it from calling displayimage.php
to display images?

  I've stopped hotlinking to the pictures but Google displays the pictures the same way someone
browsing the site would so the pictures are served from the same domain.

I have CPG 1.4.9 and Apache 2 server

So, is this possible or can I not have it both ways and will have to ban Google from the gallery entirely?
« Last Edit: October 20, 2006, 05:40:03 pm by GauGau »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Google bandwidth problem
« Reply #1 on: October 20, 2006, 12:23:04 pm »

- use robots.txt
http://webtools.live2support.com/se_robots.php

- Or put rel attribute to image link (rel="nofollow")

- or set the htaccess
« Last Edit: October 20, 2006, 12:29:01 pm by Sami »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

worzelb

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Google bandwidth problem
« Reply #2 on: October 20, 2006, 12:40:36 pm »

Thanks Sami but two of your solutions will only ban google from the entire gallery (text as well).

The nofollow won't help either as if I place that in cpg's index.php it will have the same effect
as above as it won't allow the sub directory names to be indexed (which is what i would like).

I have this kind of setup on my gallery:

Main page
  Events 2006
    event 1
    event 2
  Events 2005
    event 1
    event 2
  Events 2004
    event 1
    etc.

I get a lot of hits from Google because of the names of 'event 1', 'event 2' etc which is why I want Google to still Spider the text.
Also I've found that denying Google from the 'albums' folder in htaccess doesn't work because of the way displayimage.php works.
Because the folder 'albums' is not in the url of the picture Google doesn't know it's actually going into that folder via displayimage.php
Logged

Nibbler

  • Guest
Re: Google bandwidth problem
« Reply #3 on: October 20, 2006, 01:19:21 pm »

Use robots.txt as suggested. Either deny google access to displayimage.php or to the image files themselves.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Google bandwidth problem
« Reply #4 on: October 20, 2006, 01:54:50 pm »

To make it very clear for you...

To disallow any bot to crawl on images

Code: [Select]
User-agent: *
Disallow: /path_to_your_gallery/albums/

To disallow access on displayimage.php

Code: [Select]
User-agent: *
Disallow: /path_to_your_gallery/displayimage.php

Or you can combine both.
Logged
Chief Geek at Ranium Systems

worzelb

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Google bandwidth problem
« Reply #5 on: October 20, 2006, 04:24:35 pm »

To disallow access on displayimage.php
Code: [Select]

User-agent: *
Disallow: /path_to_your_gallery/displayimage.php


Thankyou!  That's just was I was after. I never knew you could disallow access to a specific file. I always thought it was only folders.  :-[
Logged

Nibbler

  • Guest
Re: Google bandwidth problem
« Reply #6 on: October 20, 2006, 06:14:02 pm »

You should have read the link Sami gave you, it explains how to set access to individual files.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.