You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Liu, Jack" <Ja...@FALCONJET.COM> on 2004/04/01 17:59:29 UTC

[users@httpd] how to prevent malicious scripting attack

Hi, 
  I checked the access.log, and found there are many requests coming from
one IP address. Normally, when human gets one page, he will at least spend
10 or 20 seconds to take a look at the page, then move on to another page.
However, in the log file, the request from this IP address changes page
within mili-seconds constantly and lasts for several hours.  That is why I
believe it is some kind of automation program or scrip running on this IP
address. Human cannot move that fast. 
It cause our HTTP server stop resoponding to users. 
(I know "deny,allow" directive, they only apply to Directory,File,Location.
They don't apply on the Server level. Setting it Directory, File, Location
doesn't help, because the HTTP request still consume resource until the
server cannot take it anymore. If I can set them up at the Server lever,
when the request comes from this IP address, the Sever can drop it
completely without bothering to allocate more resource.)
  
  Does the HTTP server have the ability to detect such "pattern of behavior"
accordingly? 
  
  If not, any idea of other HTTP server which can do this, detecting such
"pattern of behavior" (so that we may block it in the router).
 
  Thanks.
 
  Jack Liu
 
 

Re: [users@httpd] how to prevent malicious scripting attack

Posted by Jez Hancock <je...@munk.nu>.
On Thu, Apr 01, 2004 at 10:59:29AM -0500, Liu, Jack wrote:
>   Does the HTTP server have the ability to detect such "pattern of behavior"
> accordingly? 
There is a module called mod_dosevasive that can monitor requests made
to the webserver and perform actions when certain criteria are met:

http://www.nuclearelephant.com/projects/dosevasive/

-- 
Jez Hancock
 - System Administrator / PHP Developer

http://munk.nu/
http://jez.hancock-family.com/  - Another FreeBSD Diary
http://ipfwstats.sf.net/        - ipfw peruser traffic logging

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] how to prevent malicious scripting attack

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 1 Apr 2004, Liu, Jack wrote:
>   Does the HTTP server have the ability to detect such "pattern of behavior"
> accordingly?

No.

>   If not, any idea of other HTTP server which can do this, detecting such
> "pattern of behavior" (so that we may block it in the router).

I think you answered your own question.  This kind of blocking is most
efficiently accomplished at the router/firewall.  You firewall should have
rules limitting the packets-per-ip address or something of the sort.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] how to prevent malicious scripting attack

Posted by "Heinrich C. Kuhn" <hc...@lrz.uni-muenchen.de>.
> (I know "deny,allow" directive, they only apply to Directory,File,Location.
> They don't apply on the Server level. 

? Perhaps there is a misunderstanding on my side. However:
You can tell the server to send a 403 to any request by a
certain IP address (e.g.: 123.234.245.111):
In http.conf:

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all
    Deny from 123.234.245.111


This will probably still result in entries in
your access.log and error.log (and thus consume
disk space and processor power) but at least in
some cases a misbehaving robot will change for
other pastures after having received 403 as an
answer to its requests for some time.

   Best regards

Heinrich C. Kuhn

+---------------------------------------------------------
|    Dr. Heinrich C. Kuhn
|    Seminar fuer Geistesgeschichte der Renaissance
|    Ludwig-Maximilians-Universitaet Muenchen
|    D-80539 Muenchen / Ludwigstr. 31/IV
|    T.: +49-89-2180 2018, F.: +49-89-2180 2907
|    inst. URL: http://www.phil-hum-ren.uni-muenchen.de/
+---------------------------------------------------------


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org