Location: PHPKode > scripts > FloodDam > flooddam/example_en.php
<?php require('flooddam.php'); ?>
<?php
$flooddam = new flooddam();
?>
FloodDam Demo<br>
<br>
You are connected this demo from <b><?=$flooddam->client_ip;?></b> IP number.<br>
<br>
<?php if (empty($flooddam->client_seconds)) { ?>
You are not reached the maksimum request number <b><?=$flooddam->hits;?></b> yet.
<?php } else { ?>
Time between your last <b><?=$flooddam->hits;?></b> requests is <b><?=$flooddam->client_seconds;?></b> seconds.<br>
Average time between your last <b><?=$flooddam->hits;?></b> requests is <b><?=$flooddam->client_average;?></b> seconds.<br>
<br>
If you pass the minimum time value of <b><?=$flooddam->seconds;?></b> seconds than your IP will be blocked.
<?php } ?>
Return current item: FloodDam