Results 1 to 2 of 2

Thread: how to block spam from localhost ?

  1. #1
    Member
    Join Date
    Oct 2001
    Posts
    46

    Question how to block spam from localhost ?

    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. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,496

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads

  1. Can't block SPAM on my server - HELP!!!
    By thiagoprado in forum E-mail Discussions
    Replies: 0
    Last Post: 11-19-2010, 08:58 AM
  2. How to block localhost from sending emails
    By ralbano in forum E-mail Discussions
    Replies: 2
    Last Post: 02-10-2009, 04:28 PM
  3. Spam from localhost
    By astopy in forum cPanel & WHM Discussions
    Replies: 52
    Last Post: 05-04-2006, 10:54 AM
  4. SPAM - hpw tp block some ipīs
    By mvital in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 05-04-2005, 06:30 PM
  5. block spam by words?
    By chadi in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 08-07-2004, 04:07 AM