Welcome to WebmasterWorld Guest from

Forum Moderators: goodroi

Message Too Old, No Replies

Block affiliate tracking

but keep the main page in Google

9:57 am on Jul 9, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 23, 2003
votes: 0

Hi People,

Had a few looks into this and cannot find a solution so hoping someone here can help.

We post items as /item.php/85756

We ask affiliates to send us traffic as:

Google is now indexing /item.php/85756?ref=partner1

Want to still allow Google into /item.php/85756

but block the?ref=partner1

Is this possible using robots.txt?

11:24 am on July 9, 2007 (gmt 0)

Junior Member

5+ Year Member

joined:Dec 22, 2006
votes: 0


a better and more solid way would be to redirect 301 anything that comes in with an affiliate link to a url without the aff parameter.


1:14 pm on July 9, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 7, 2003
votes: 0

I don't quite understand what you are trying to do.

Are you saying that your affiliates links are being indexed and ranked by google and you want to stop that happening?

Or that you don't want the end user to see the aff code on the end of the string?


[edited by: ska_demon at 1:53 pm (utc) on July 9, 2007]

1:23 pm on July 9, 2007 (gmt 0)

Administrator from US 

WebmasterWorld Administrator goodroi is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:June 21, 2004
votes: 67

that is going to make some affiliates not happy. affiliates generally want to see their id code in the url to make sure they are getting credit for all sales. the redirect would solve the search engine issue but create a new issue with affiliates. maybe your affiliates aren't that sensitive and will be ok with it.

an alternative would be to use pattern matching aka wildcards in your robots.txt for google.

good luck

2:26 pm on July 9, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 23, 2003
votes: 0

Cheers oziman, very sensible! Have now done this, thanks for the help.