Re: [PHP] Detecting massive web hits
[email protected] (Matijn Woudt)
| Newsgroups | php.general |
|---|---|
| Message-ID | <CAC_gtuMjbZmTO-2zZjtV-M+o_8auBqKsHFBCrm+OwQfWWctXHw@mail.gmail.com> |
On Fri, Apr 12, 2013 at 5:23 PM, Angela Barone <[email protected]>wrote: > Does anyone know if there's a ready-made script that detects if > someone hits multiple web pages within seconds of each other and then can > temporarily ban them by IP from accessing our site? > > Looking through the logs, I see someone/something hit each and > every page of a site I work on within only a few seconds of each other. I > seriously doubt they are a customer. ;) > > I'd appreciate any insights. > > Thank you, > Angela > > Just to be sure, are you sure it is not a spider? (Google, Bing, etc) You can detect with the user agent. If it is, you can most likely switch some settings. - Matijn