Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    306
    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,460
    Likes Received:
    21
    Trophy Points:
    463
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice