how to block spam from localhost ?

youp

Well-Known Member
Oct 30, 2001
54
0
306
i write this file :

<?php
$email="[email protected]";
$sujet="test test ";
$message="hi,\n\n";
$message.="it s for test only\n";
$headers="From: [email protected]\n";
mail($email,$sujet,$message,$headers);
?>


and by command line or web , i start this script more time

the result is lot of mails remain in mail queue and never deleted :(

how to prevent this form of attack ?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
With difficulty - that's one of the risks in running a shared hosting environment. The best thing is to keep a close eye on your exim_mainlog and set sending limits for your domains.