22, November 2008

header control - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: header control
« previous next »
Pages: [1] Print

Author Topic: header control  (Read 545 times)
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8249
42481 credits
Members referred : 3



« on: Dec 02, 2005, 04:43:01 PM »

I have a strange problem.

Google is crawling so much pages of my site that it is like a DOS attack....

In the first two days of this month, I got more than 15.000 hits from google and the whole requests from crawlers were more than 30.000

So I thought it would be better if I could manipulate the headers, so that the crawlers will not re-index allready indexed pages.

Can you help me to do this?

I use the above code, but it is not working fine :

Code:
<?php
  header
("HTTP/1.0 304 Not Modified");
  
header("Expires: " gmdate("D, d M Y H:i:s", ( time() + 31550600 ) ) . " GMT");//For one year
  
header("Last-Modified: "gmdate("D, d M Y H:i:s"$mod ) ." GMT");
?>


the $mod is the timestamp of the last modified date.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1523
6847 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #1 on: Dec 05, 2005, 09:06:01 AM »

That will probably not help straight away as G will only pick it up after reindexing that page... have you removed it from the header now; cause I can't see it in there?


Last blog : Site of the Month - August 2007
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8249
42481 credits
Members referred : 3



« Reply #2 on: Dec 05, 2005, 12:21:17 PM »

I am not sure if I understand what you said (I know my english sucks Smiley )

The problem here is that the pages in my site are dynamic.  So every time someone visits a page it gets a header that this page has created now.

Google is visiting my site very often and crawls pages that have allready crawled (that actually haven't expired yet)

With the headers I want to tell Google when to recrawl the page.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=904
Tags : google Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: header control
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Nov 22, 2008, 12:56:47 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.736
Total Topics: 7.650
Total Members: 4.396
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: thomas09

35 Guests, 4 Users online :

12 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.