Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2015, 08:47 AM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Server Status Issues

I currently run a VPS for my forum and I've had a lot of people saying it is really slow. I contacted my host and they gave me access to the server status page. See the attachment.

It seems a google bot is constantly accessing my forum tags and using up all the CPU. Can anyone recommend some suggestions to diagnose further and fix the issue?
Attached Images
File Type: jpg stats.jpg (144.3 KB, 0 views)
Reply With Quote
  #2  
Old 01-14-2015, 09:35 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can block tags using robots.txt or even set up some crawling delays.

Like this

User-agent: msnbot - replace with what ever bot you want
Crawl-delay: 5

and add this as well:

Disallow: /tags/

There is also a great mod here. Use it to block the bad bots, at least the ones that honor the robots.txt file. https://vborg.vbsupport.ru/showthread.php?t=268208
Reply With Quote
  #3  
Old 01-14-2015, 10:14 AM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67 View Post
You can block tags using robots.txt or even set up some crawling delays.

Like this

User-agent: msnbot - replace with what ever bot you want
Crawl-delay: 5

and add this as well:

Disallow: /tags/

There is also a great mod here. Use it to block the bad bots, at least the ones that honor the robots.txt file. https://vborg.vbsupport.ru/showthread.php?t=268208
Thanks. I know about the robots.txt but not all bots take it into account. I have multiple mods for blocking bots too. It's googlebot that is requesting the tags all the time so I can't block it lol
Reply With Quote
  #4  
Old 01-14-2015, 10:35 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Honestly unless you have tens of thousands of them I would not think the bots would be an issue in terms of server resources.

With that said it is strange that Google is ignoring the robots.txt file.

If you can have your host set up fail2ban on your server. Set up the jail for bots and it will temporarily ban heavy bot activity. It can also save you from ddos attacks and heavy probes, etc.
Reply With Quote
  #5  
Old 01-14-2015, 10:38 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could also hook into tags_start and make it so that users who are not logged in can not see the page, that would stop the bots from executing the search queries.
Reply With Quote
3 благодарности(ей) от:
Black Snow, CAG CheechDogg, RichieBoy67
  #6  
Old 01-14-2015, 10:41 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
You could also hook into tags_start and make it so that users who are not logged in can not see the page, that would stop the bots from executing the search queries.
Great idea! I did not think of that!

This would limit guests from being able to use the tags though but seems like a good trade off I suppose.
Reply With Quote
  #7  
Old 01-14-2015, 10:45 AM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
You could also hook into tags_start and make it so that users who are not logged in can not see the page, that would stop the bots from executing the search queries.
Never thought of that. Good idea. I think I will write something up for it and see if it works.

EDIT: Although this would stop them accessing the tags page, it would not stop them from requesting the page.
Reply With Quote
  #8  
Old 01-14-2015, 10:47 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Black Snow View Post
Never thought of that. Good idea. I think I will write something up for it and see if it works.

EDIT: Although this would stop them accessing the tags page, it would not stop them from requesting the page.
That's true, but I think the load on your server is caused by the extensive search queries.
I'm sure the bots eventually figure out that they all get the same error and they'll stop visiting the page.

You can always try it out and see if that works.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 07:14 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04336 seconds
  • Memory Usage 2,253KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (3)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete