Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ Miscellaneous ⇒ Search Engines ⇒ [solved] Rampaging bots


[solved] Rampaging bots
Questions and issues with search engines, SEO, bots, meta tags.
Go to page 1, 2  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Search Engines

View previous topic :: View next topic  
Author Message
Kinsman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: May 29, 2006
Posts: 343
Location: Australia
PostPosted: Wed Oct 05, 2011 6:30 am
Post subject: [solved] Rampaging bots

over the last month or so both MSN and yahoo bots have been generating loads of SQL Error emails to my admin account.

Basically the SQL server is timing out before there queries complete.

EG:

On /index.php?name=coppermine&file=displayimage&meta=lastup&cat=5&pos=73
While executing query "SELECT COUNT(*) FROM cms_session WHERE uname='9ac603e5921b2947ffad4324b9712d86'"

the following error occured: MySQL server has gone away

In: header.php on line: 44

Guest information:
User id: 1
Username: Anonymous
Admin: No
IP: 207.46.195.240
Host: msnbot-207-46-195-240.search.msn.com

I have been ignoring it buts its only getting worse, is there a way to ban these bots?

I have tried adding them manually, but have no idea what their UA Detect String is, or how to find it.

Is there a way to find that info???


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0
Back to top
View user's profile Visit poster's website
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Wed Oct 05, 2011 11:45 am
Post subject: Re: Rampaging bots

you can increase you crawl delay in yourdomain.com/robots.txt it is set to 20 right now

Honestly tho your site stats dont reflect being hit hard enough to cause this. I would be searching for another cause or contacting the host so they can check for a problem with the server.

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
Kinsman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: May 29, 2006
Posts: 343
Location: Australia
PostPosted: Wed Oct 05, 2011 12:58 pm
Post subject: Re: Rampaging bots

Sure, I understand that the MySql shouldn't time out, but the only issues we have with the site is these pesky bots, all else runs fine, which is why I was checking options to quash them so to speak.

Have extended crawl delay to 30, will see if that helps thanks. Very Happy


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0
Back to top
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Wed Oct 05, 2011 9:33 pm
Post subject: Re: Rampaging bots

Since it is msn and yahoo, you can also block them using robots.txt but Diz is right - your real problem is your server restrictions/setup.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Wed Oct 05, 2011 10:51 pm
Post subject: Re: Rampaging bots

your only getting 3-6 hundred hits an hour. I have built sites for clients using dragonflycms that get 200,000+ hits an hour and have no issues at all. If you got flood control on, there is no problem. Even if it is off, your hosting provider have taken measures to prevent ddos attacks against there networks. Problem is with your server. Check your servers logs and resource usage. Besides msn and yahoo generally follow robots.txt and with the default delay set at 20 that means there only getting you site for 3 hits each per minute. Trust me it is not the bots, it is the server.


and with 800+ other websites that are on that server. it might not be your site crashing mysql if it was trust me you would know host would suspend your account until offending script was removed.

Edit: 872 other sites are hosted on that server. lol a whole lot of room for mistakes.

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Wed Oct 05, 2011 11:13 pm
Post subject: Re: Rampaging bots

MySQL gone away it may be caused by too many different reasons and it may be server or dragonflycms related, not an easy one.

Are the errors coming from the same query, or the query changes?

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Kinsman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: May 29, 2006
Posts: 343
Location: Australia
PostPosted: Thu Oct 06, 2011 8:42 am
Post subject: Re: Rampaging bots

lots of different server queries, always MSN and yahoo though. Not one email since changing the crawl-delay to 30 though.


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0
Back to top
View user's profile Visit poster's website
Kinsman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: May 29, 2006
Posts: 343
Location: Australia
PostPosted: Tue Oct 11, 2011 2:37 am
Post subject: Re: Rampaging bots

Thanks for getting me looking at the stats. Its made me aware that site traffic has doubled in recent months, and in fact looks on track to triple.

I have no doubt this is all just bot traffic. I look at the site right now and see 25 "visitors". I have no doubt that all 25 are actually bots that DF just doesn't recognise to class them as bots.

Which leads me right back to my original question, can, and how, do we add new bots to the system?

Secifially, how to identify their UA String?


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0
Back to top
View user's profile Visit poster's website
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Tue Oct 11, 2011 2:43 am
Post subject: Re: Rampaging bots

admin/ security/ bots there is a form on the right for adding new bots to the list


as for getting there info your guess is as good as mine

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Tue Oct 11, 2011 4:14 am
Post subject: Re: Rampaging bots

df firstly look for their ip range then (not sure) at their ua

basically you need their ip range and add it to the security table ... but I'll prefer someone more experienced then me to answer

BUT ... from one year msn bot uses session id and it also masquerade its UA!


InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
none available
Back to top
View user's profile Visit poster's website
Kinsman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: May 29, 2006
Posts: 343
Location: Australia
PostPosted: Tue Oct 11, 2011 8:54 am
Post subject: Re: Rampaging bots

Ok so pretty much as I thought then, that page is useless and bots cannot be added manually, as there is no way to ascertain there UA String, and its a "requirement" to add them.


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Tue Oct 11, 2011 11:08 am
Post subject: Re: Rampaging bots

@Kinsman: Which "page" are you talking about, can you explain?
It's also not a requirement to add them as they would simply treated as normal users browsing the site, and ... when was ever said it was a requirement.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Kinsman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: May 29, 2006
Posts: 343
Location: Australia
PostPosted: Tue Oct 11, 2011 11:20 am
Post subject: Re: Rampaging bots

in Security under add bots, their UA String IS a requirement, there is no way to add any without it, as the entry is not accepted.

If noone knows how to ascertain their UA String, then whats the point of even being able to add them?


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Tue Oct 11, 2011 11:52 am
Post subject: Re: Rampaging bots

Oh security page, not statistics.

Just because microsoft doesn't follow standards it doesn't make our feature obsolete or "useless".

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Kinsman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: May 29, 2006
Posts: 343
Location: Australia
PostPosted: Tue Oct 11, 2011 11:57 am
Post subject: Re: Rampaging bots

whats M$ got to do with it, I can't add ANY bots currently, as I have no clue how to find their UA String.

there are plenty I would like to add besides MSN, like Yahoo for starters.


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Search Engines
Page 1 of 2
All times are GMT
Go to page 1, 2  Next



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

อ่านต่อ...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy