Forum Moderators: open

Message Too Old, No Replies

how to make google _not_ follow a certain link?

dynamic url?

         

avxxx

8:50 am on Aug 24, 2003 (gmt 0)



Hi!

On my startpage, I have a random quote which changes by reloading the page. I wanted the user to be able to get a new quote by click, so I wrote a php function that generates a random number. The link goes index.php?q=randomnumber#quote (by clicking, browser should jump to this anchor). This ensures that the user's browser reloads the startpage on click (the random number simulates unique content).

I'm using googles web API for my site search and now, the startpage appears 15 times in the search results (with the different "dynamic urls", of course)...

My question: How can I make sure google doesn't follow this certain link (probably the first time this is asked here)? How long does this "dynamic" url have to be? 2,3,4 parameters?

abates

12:02 pm on Aug 24, 2003 (gmt 0)

10+ Year Member



Can you have index.php insert a meta tag to exclude robots if the random number is passed?

mattur

1:17 pm on Aug 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I agree abates, seems like this would be the best way. I've done a similar thing on a job site where a dynamic page like job.ext?jobid=1 checks whether the vacancy is closed. If it is, then the meta robots noindex tag is included. Seems to work well with Google. HTH.