Hello

I am using google adsense ad on my site, I just paste the code into the block but not using the adsense module.
From the research on google I have found , I need to paste the code:

"User-agent: Mediapartners-Google
Disallow:
Allow: /*"

in the robot.txt to make the adsense works.

The question is : the code below in robot.txt already: should I paste the "User-agent: Mediapartners-Google..." above them or should I remove the code which already in the robot.txt first,and then paste the new code ? Thank you very much!

User-agent: *
Crawl-delay: 10
# Directories
Disallow: /includes/
Disallow: /misc/
Disallow: /modules/
Disallow: /profiles/
Disallow: /scripts/
Disallow: /themes/
# Files
Disallow: /CHANGELOG.txt
Disallow: /cron.php
Disallow: /INSTALL.mysql.txt
Disallow: /INSTALL.pgsql.txt
Disallow: /install.php
Disallow: /INSTALL.txt
Disallow: /LICENSE.txt
Disallow: /MAINTAINERS.txt
Disallow: /update.php
Disallow: /UPGRADE.txt
Disallow: /xmlrpc.php
# Paths (clean URLs)
Disallow: /admin/
Disallow: /comment/reply/
Disallow: /filter/tips/
Disallow: /logout/
Disallow: /node/add/
Disallow: /search/
Disallow: /user/register/
Disallow: /user/password/
Disallow: /user/login/
# Paths (no clean URLs)
Disallow: /?q=admin/
Disallow: /?q=comment/reply/
Disallow: /?q=filter/tips/
Disallow: /?q=logout/
Disallow: /?q=node/add/
Disallow: /?q=search/
Disallow: /?q=user/password/
Disallow: /?q=user/register/
Disallow: /?q=user/login/

Comments

anybody can give a bit of advise ? Thanks

???

If you want ads on all your pages, but you don't want those pages to appear in Google Search you should use:

User-agent: Googlebot
Disallow: /

User-agent: Mediapartners-Google
Disallow:

More information on that matter is available here:

https://support.google.com/webmasters/answer/1061943?hl=en

However since in your current robots.txt you are allowing all user-agents, there is no need to add:

"User-agent: Mediapartners-Google
Disallow:
Allow: /*"

Hope the information was useful.

Best Regards

www.tmdhosting.com
---------------------
Drupal Hosting, Free Drupal Installations, Free Module and Theme Installations, Free Upgrades, Free Drupal