krang
19-11-2003, 04:43 PM
Ok, an example of some PHP code which will hopefully cause chaos with spam-bots. Its purpose is to generate 10 random email addresses which will hopefully trick the spam-bot into saving them, so it will fill its table up with pointless email addresses.
<?PHP
echo "\n\n" . '<!-- Anti-Spam Feature -->' . "\n";
srand ((double) microtime() * 948625);
for ($K=0; $K<10; $K++) {
$ADDRESS = '';
$ADDRESS_LENGTH = rand (4,15);
while (strlen($ADDRESS) < $ADDRESS_LENGTH) {
$ADDRESS .= chr(rand (97,122));
}
$DOMAIN = '';
$DOMAIN_LENGTH = rand (4,15);
while (strlen($DOMAIN) < $DOMAIN_LENGTH) {
$DOMAIN .= chr(rand (97,122));
}
echo '<!-- ' . $ADDRESS . '@' . $DOMAIN . '.com -->' . "\n";
}
?>
Can you put this somewhere in your websites (and tell your friends about it) to help bring these annoying bots down. Any comments on the code welcome.
<?PHP
echo "\n\n" . '<!-- Anti-Spam Feature -->' . "\n";
srand ((double) microtime() * 948625);
for ($K=0; $K<10; $K++) {
$ADDRESS = '';
$ADDRESS_LENGTH = rand (4,15);
while (strlen($ADDRESS) < $ADDRESS_LENGTH) {
$ADDRESS .= chr(rand (97,122));
}
$DOMAIN = '';
$DOMAIN_LENGTH = rand (4,15);
while (strlen($DOMAIN) < $DOMAIN_LENGTH) {
$DOMAIN .= chr(rand (97,122));
}
echo '<!-- ' . $ADDRESS . '@' . $DOMAIN . '.com -->' . "\n";
}
?>
Can you put this somewhere in your websites (and tell your friends about it) to help bring these annoying bots down. Any comments on the code welcome.