Forum Moderators: martinibuster

Message Too Old, No Replies

Meta Robots to allow adsense and disallow googlebot

has to be ON PAGE only

         

Clark

1:04 am on Dec 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have certain dynamic pages based on a script that delivers lots of duplicate content. I DO NOT want googlebot to index those pages due to duplicate content penalties. So I dynamically inject <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> on those pages. But then I realized that this will probably cause the Mediapartners Adsense bot to not visit the page and therefore invalidate the ads for that page. How do I ALLOW adsense bot and DISALLOW the standard googlebot on a page by page basis using the META tag? I do not want to touch robots.txt. Thank you.

asinah

1:50 am on Dec 19, 2004 (gmt 0)

10+ Year Member



From my experience u can use the following in your robots.txt file

User-agent: Mediapartners-Google*
Disallow:

User-agent: googlebot
Disallow: filename.html

u could of course use a directory and not a filename.

jdMorgan

2:16 am on Dec 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> I do not want to touch robots.txt.

Modify your script to check the HTTP_USER_AGENT variable and write the appropriate meta-robots tage to the page.

You could also do this using server-side includes on a non-script-driven site.

Jim

Clark

2:20 am on Dec 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So there is no meta tag to specify a particular bot? And the above meta code would cause Mediapartners to ignore the page then?

Jenstar

2:55 am on Dec 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<meta name="googlebot" content="noarchive, nofollow">

This will allow all bots (including the AdSense media partners bot) except for the googlebot.

Clark

4:55 pm on Dec 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<meta name="googlebot" content="noarchive, nofollow">

So it doesn't matter that the Adsense bot is Called MediaPartners Googlebot?

This will allow all bots (including the AdSense media partners bot) except for the googlebot.

I guess not?

Beautiful. :KISS: Thank you.

Jenstar

5:12 pm on Dec 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I *believe* so, but put it on a new page and see if mediabot comes when you execute the javascript. I have never heard of them using the meta for the mediabot though.