Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Reply
 
LinkBack Thread Tools Display Modes



#1   12-03-2008, 04:05 PM
Nick R has a spectacular aura about Join Date: May 2008 Location: Sarasota, FL
iTrader: (0)
User-Submitted Tools: MrLogin, OnlineClock
Help with my robots.txt...


I've never had a problem with my robots.txt file until now.

I recently got an e-mail from AdSense stating that it cannot reach some of my site's pages that are currently serving ads due to robots.txt restrictions.
They request that I give access to their AdSense bot (Mediapartners-Google*) to the pages that are usually blocked.

How, in my robots.txt file, can I grant access only to Mediapartners-Google* but block everything else?

Do I just simply add
Code:
User-agent: Mediapartners-Google*
Disallow:
below my current code, which is:
Code:
User-agent: *
Disallow: certain pages
?

Thanks in advance for any assistance.

.....

...And if anybody is interested, here is a copy of the e-mail that AdSense sent:
Quote:
,

While reviewing your ad implementation, we noticed that your robots.txt file is currently preventing our AdSense crawler from reaching a significant number of pages with ads in your account.

In order to serve targeted, paid ads to your sites, our crawler needs to visit your sites’ pages to determine their content. Please update your robots.txt file to allow the AdSense crawler to access all pages showing Google ads. You can allow the AdSense crawler access to your sites by adding the following lines to your robots.txt file:

User-agent: Mediapartners-Google*
Disallow:

Thanks for helping enable us to serve the most relevant ads to your sites. Please note that in the future, if we can't crawl some of your pages, we may disable ad serving to those pages.

For more information, please visit: https://www.google.com/adsense/suppo...y?answer=37091

We appreciate your understanding.

Yours sincerely,

The Google AdSense Team

Google, Inc.
1600 Amphitheatre Parkway
Mountain View, CA 94043, USA


Last edited by Nick R; 12-03-2008 at 04:08 PM..
Quote   |  



#2   12-03-2008, 06:59 PM
Crow will become famous soon enough Join Date: Oct 2006 Location: Detroit, Michigan
iTrader: (0)
Re: Help with my robots.txt...


Why would you want to block a search engine from crawling your site in the first place?


Putting these two lines on the top two lines in your robot.txt is said to work.
(per googles own site)
Code:
User-agent: Mediapartners-Google* 
Disallow:
--------------------
A Dollar Link - Dollar Link!
Bid A Link - Place your websites link starting at $1.00
ShareUrLink - ShareUrLink for $1!
Quote   |  



#3   12-03-2008, 07:24 PM
Nick R has a spectacular aura about Join Date: May 2008 Location: Sarasota, FL
iTrader: (0)
User-Submitted Tools: MrLogin, OnlineClock
Re: Help with my robots.txt...


Quote:
Originally Posted by Crow View Post
Why would you want to block a search engine from crawling your site in the first place?


Putting these two lines on the top two lines in your robot.txt is said to work.
(per googles own site)
Code:
User-agent: Mediapartners-Google* 
Disallow:
I'm not blocking my entire site from being crawled; just certain pages. Everybody has pages they don't want/need crawled.

Yes, I know that code is said to allow the AdSense bot to crawl my site. However, my question is, will that code override my current code which disables all crawlers from crawling my specified content?
Quote   |  



#4   12-03-2008, 07:30 PM
Send a message via AIM to Rocket 442 Rocket 442 is just really niceRocket 442 is just really nice Join Date: Nov 2007 Location: Buffalo, NY
iTrader: (0)
Re: Help with my robots.txt...


That should only allow googles mediapartner spiders to crawl it. Google has separate crawlers for adsense and their actual search engine

This shouldn't make any other crawler index these pages at all since its giving special directions to mediapartners-google crawler, and not others.
--------------------
Andy / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.


Need a Custom Wordpress or Business Design? Staple Web Design
Camaro Forums & Firebird Forums
Quote   |  



#5   12-03-2008, 09:04 PM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Location: Topeka, KS
iTrader: (0)
digiXMAS Automatic Directory Submission Tool
Re: Help with my robots.txt...


I got the same email from google
this is what I did
http://forum.vbulletinsetup.com/robots.txt
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.


Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar
Quote   |  



#6   12-03-2008, 09:39 PM
popowich is a jewel in the rough Join Date: Jul 2007 Location: Rochester, New York
iTrader: (0)
Location of yahoo mail server IP 66.163.178.133
Re: Help with my robots.txt...


I got the same e-mail yesterday but following their directions my robots.txt looks different like this.

-Raymond
--------------------
New York Forum | Email Help
Quote   |  



#7   12-03-2008, 10:15 PM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Location: Topeka, KS
iTrader: (0)
digiXMAS Automatic Directory Submission Tool
Re: Help with my robots.txt...


I wasn't sure how it should go, I changed mine thanks
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.


Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar
Quote   |  



#8   12-04-2008, 03:52 AM
Send a message via Yahoo to valdet valdet has a spectacular aura about Join Date: Jan 2008 Location: Kosova
iTrader: (0)
Re: Help with my robots.txt...


Here is how I have it

Code:
User-agent: Mediapartners-Google*
Allow: /

User-agent: *
Disallow: /forum/admincp/
Disallow: /forum/archive/
Disallow: /forum/clientscript/
. .
Good or bad... ?

I'm lost
Quote   |  



#9   12-05-2008, 08:01 AM
popowich is a jewel in the rough Join Date: Jul 2007 Location: Rochester, New York
iTrader: (0)
Location of yahoo mail server IP 66.163.178.133
Re: Help with my robots.txt...


I'm not sure if this is good or bad, but I'd rather not screw around with google.

I noticed in the webmaster tools I still have a warning for google not being allowed per the robots.txt.

I changed mine to be this:

Quote:
User-agent: *
Disallow:
Sitemap: http://www.emailquestions.com/sitemap_index.xml.gz

Allow everything, and if they run into permissions errors so be it. If that's what makes google happy...

-Raymond
--------------------
New York Forum | Email Help
Quote   |  



#10   12-05-2008, 10:29 AM
Blake2181 is a jewel in the roughBlake2181 is a jewel in the rough Join Date: Mar 2008
iTrader: (0)
Re: Help with my robots.txt...


Well here is one I use for most sites...it works fairly well

Sitemap: http://yoursite.com/sitemap_index.xml.gz

User-agent: *
Disallow: /admincp/
Disallow: /clientscript/
Disallow: /cpstyles/
Disallow: /customavatars/
Disallow: /customprofilepics/
Disallow: /images/
Disallow: /modcp/
Disallow: /ajax.php
Disallow: /arcade.php
Disallow: /attachment.php
Disallow: /calendar.php
Disallow: /cron.php
Disallow: /editpost.php
Disallow: /global.php
Disallow: /image.php
Disallow: /inlinemod.php
Disallow: /joinrequests.php
Disallow: /login.php
Disallow: /member.php
Disallow: /memberlist.php
Disallow: /misc.php
Disallow: /moderator.php
Disallow: /newattachment.php
Disallow: /newreply.php
Disallow: /newthread.php
Disallow: /online.php
Disallow: /poll.php
Disallow: /postings.php
Disallow: /printthread.php
Disallow: /private.php
Disallow: /profile.php
Disallow: /register.php
Disallow: /report.php
Disallow: /reputation.php
Disallow: /search.php
Disallow: /sendmessage.php
Disallow: /showgroups.php
Disallow: /showpost.php
Disallow: /subscription.php
Disallow: /threadrate.php
Disallow: /usercp.php
Disallow: /usernote.php


Works fine and never get errors..Though I have showpost removed because using vbseo..If you do not have vbseo..You may want to take that out
--------------------
Out Of Work Admin
Quote   |  
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tags, Archive, robots.txt and duplicate content nfn vBulletin SEO Tips and SEO Questions 2 04-26-2008 10:54 PM
Google releases a robots.txt generator! News Search Engine News 0 04-06-2008 10:49 PM
Preventing people reading your robots.txt file? Ekka vBulletin Questions 19 10-28-2007 02:06 AM
Can I disallow visitors from showing the threads and allow robots? THE X FILES vBulletin SEO Tips and SEO Questions 3 12-13-2006 02:25 AM


All times are GMT -6. The time now is 01:43 PM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions
vBulletin Skins, Styles, Templates, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory