include "$_SERVER[DOCUMENT_ROOT]/path/to/ksantiddos.php"; $ksa = new ksantiddos(); $ksa->doit(20,10); // allow 20 hits in 10 seconds