You are here: Re: How do I limit my number of PHP hits per second? « PHP Programming Language « IT news, forums, messages
Re: How do I limit my number of PHP hits per second?

Posted by Rik on 01/31/07 23:50

Nu <no@spam.com> wrote:

> I want to protect myself from if someone with a fast connection hammers
> my
> site. It's not denial of service attacks, but offline downloaders (of
> course
> that don't show they're offline downloaders in the useragent so I can't
> filter them by that). My main issue is my site is PHP so if they hammer
> it,
> it gets all the PHP files executing and overwhelms the CPU. I'd like to
> be
> able to after a certain amount of hits on my index.php per second, so
> just
> refuse.
>
> I can't find how to do that. Can it be done in PHP, htaccess, etc.

I'd say this would have to be done on server-level, anything in PHP would
still need/eat quite some resources.

May I suggest you ask this on alt.apache.configuration?
--
Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация