| by Scott Kilroy | No comments

apache – test mod_evasive is setup correctly

You can use this simple script to test mod_evasive is installed and running. I didn't write this but forgot where I found it. Sorry for the lack of credit where it's due.


# test.pl: small script to test mod_dosevasive's effectiveness

use IO::Socket;
use strict;

for(0..100) {
my($SOCKET) = new IO::Socket::INET( Proto => "tcp",
PeerAddr=> "w3.fiendishplan.com:80");
if (! defined $SOCKET) { die $!; }
print $SOCKET "GET /?$_ HTTP/1.0\n\n";
$response = <$SOCKET>;
print $response;

Share Button

Leave a Reply