Zen Cart Logo
Forums / General Questions / Ask a Question and Bots

Ask a Question and Bots

Locked

Views: 1,078

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
21 Apr 2009, 3:46 PM
#1
micmed avatar

micmed

Zen Follower

Join Date:
Mar 2008
Location:
The Free South
Posts:
165
Plugin Contributions:
0

Ask a Question and Bots

Bots continue to crawl "Ask a Question" on my products even though I have removed that Mod from the site.

https://www.thecablestation.com

28 Apr 2009, 6:47 PM
#2
micmed avatar

micmed

Zen Follower

Join Date:
Mar 2008
Location:
The Free South
Posts:
165
Plugin Contributions:
0

Re: Ask a Question and Bots

Bump - Any suggestions?

29 Apr 2009, 3:36 AM
#3
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,284
Plugin Contributions:
39

Re: Ask a Question and Bots

Open your tpl_product_info_display.php

Find is you are using the button....

   <div id="askQuestion" class="biggerText">
   <?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id='
   . $_GET['products_id']) . '">' .
   zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) .
   '</a>'; ?></div>

Change to

   <div id="askQuestion" class="biggerText">
   <?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id='
   . $_GET['products_id']) . '" rel="nofollow">' .
   zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) .
   '</a>'; ?></div>
   <br />
   <br class="clearBoth" />

Then add this to your robots.txt for Google and Yahoo

User-agent: Googlebot 
/index.php?main_page=ask_a_question&products_id=*

User-agent: Slurp 
/index.php?main_page=ask_a_question&products_id=*

~Melanie

29 Apr 2009, 8:09 PM
#4
micmed avatar

micmed

Zen Follower

Join Date:
Mar 2008
Location:
The Free South
Posts:
165
Plugin Contributions:
0

Re: Ask a Question and Bots

Melanie, the problem is that I have removed all of that already but Google and others are still crawling my site as if AAQ is still installed.
This is typical of what I see on Who is Online:
Session ID:
Host: crawl-66-249-70-102.googlebot.com
User Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
/index.php?main_page=ask_a_question&products_id=2106

29 Apr 2009, 8:13 PM
#5
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,284
Plugin Contributions:
39

Re: Ask a Question and Bots

The code suggestion I gave you removes nothing..... It adds a nofollow on the link.

The robots.txt adds the wild card crawl blocking for the ask a question pages.

Then, if they still crawl you can add ask_a_question to your robots skip definition in your meta_tag.php

~Melanie

29 Apr 2009, 8:45 PM
#6
micmed avatar

micmed

Zen Follower

Join Date:
Mar 2008
Location:
The Free South
Posts:
165
Plugin Contributions:
0

Re: Ask a Question and Bots

mprough:

The code suggestion I gave you removes nothing..... It adds a nofollow on the link.

The robots.txt adds the wild card crawl blocking for the ask a question pages.

Then, if they still crawl you can add ask_a_question to your robots skip definition in your meta_tag.php

~Melanie

I understand the code suggestion, I just don't have that code on my site anymore.

I had ask_a_question blocked in robots.txt already.

I thought I had ask_a_question blocked in my meta_tags.php, but after checking it again it was missing. I have added that and see if that does the trick.

I still don't understand how they can crawl something that isn't there. I redo my sitemaps on a regular basis.

Thanks for all of your help.

29 Apr 2009, 8:48 PM
#7
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,284
Plugin Contributions:
39

Re: Ask a Question and Bots

Google will continue to crawl index & cached pages for up to 90 days... as they do not know it was removed or it was broken.

Log in to Google webmaster tools and remove the urls =-)
~Melanie

29 Apr 2009, 8:57 PM
#8
micmed avatar

micmed

Zen Follower

Join Date:
Mar 2008
Location:
The Free South
Posts:
165
Plugin Contributions:
0

Re: Ask a Question and Bots

Thanks again.