Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Best practices for throttling incoming IP's to prevent site slowdowns
Old 07-02-2010, 11:58 AM Question Best practices for throttling incoming IP's to prevent site slowdowns
Junior Talker

Posts: 4
Trades: 0
I started to look into mod_cband for its ability to limit maximal IP's.
This came about due to some issues I read about having to do with the hosting company I'm using, so I wanted to look into it myself and try to figure out how Google, and the other search engines handle these situations.

What happens when they come to a site, and that site only allows X connections from that IP at a time?

Also, how do sites keep from getting overrun with rogue bots and the like?

This is all new to me, I'm simply trying to understand.

Thanks for any and all responses

ap0
ap0s7le is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-02-2010, 12:09 PM Re: Best practices for throttling incoming IP's to prevent site slowdowns
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,390
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
What happens when they come to a site, and that site only allows X connections from that IP at a time
They get served a 403 status code usually (or 421 for FTP)

HTTP normally only makes a single connection per IP so it won't generally happen to websites unless somebody is using a scraping tool to "rip" the site pages.

FTP is what can create multiple streams and multiple connections.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-02-2010, 01:36 PM Re: Best practices for throttling incoming IP's to prevent site slowdowns
Junior Talker

Posts: 4
Trades: 0
What's happening is, we have a site that's getting hammered by bots/spiders and just general traffic. But some of these bots come in, and just eat us alive.

What I'm interested in learning is, is there a normal / common way of handling these situations?

I want to keep things online and stable, but when I get in 140k bots a day in the morning, it makes it real hard
ap0s7le is offline
Reply With Quote
View Public Profile
 
Old 07-02-2010, 01:59 PM Re: Best practices for throttling incoming IP's to prevent site slowdowns
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,390
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Block the bots you don't want at the firewall NOT the server.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-02-2010, 03:20 PM Re: Best practices for throttling incoming IP's to prevent site slowdowns
Junior Talker

Posts: 4
Trades: 0
I wish I could. Instead of blocking we'd prefer to throttle them to a max IP per second, so it evens out only those offending bots. We want them, without a lot of that play then we'll not get indexed in the various places that we'd like.

We would just prefer to allow them to do so on our terms.
ap0s7le is offline
Reply With Quote
View Public Profile
 
Old 07-02-2010, 03:21 PM Re: Best practices for throttling incoming IP's to prevent site slowdowns
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
If you have a linux server with IPtables, you can get it to block IP's if they exceed a certain amount of requests or bandwidth.

( Dont ask how ) I just know there "is" a way to do this.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
Reply With Quote
View Public Profile Visit lynxus's homepage!
 
Old 07-06-2010, 09:47 AM Re: Best practices for throttling incoming IP's to prevent site slowdowns
Junior Talker

Posts: 4
Trades: 0
Thanks lynxus, but how? j/k

I'm surprised that not more people have experience with stuff like mod_cband and the like. I wonder where I can find sysadmins and the like on the web?

Thanks all for your help, hopefully I can find what I'm looking for here soon.

ap0
ap0s7le is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Best practices for throttling incoming IP's to prevent site slowdowns
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.52350 seconds with 12 queries