The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to block spam from localhost ?

Discussion in 'General Discussion' started by youp, Aug 30, 2006.

  1. youp

    youp Well-Known Member

    Joined:
    Oct 30, 2001
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    i write this file :

    <?php
    $email="aeazeaz@eazeazeazeazeazeaze.com";
    $sujet="test test ";
    $message="hi,\n\n";
    $message.="it s for test only\n";
    $headers="From: azeazeaz@qsdfsdf.be\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 ?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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.
     
Loading...

Share This Page