Search code examples
linuxdebianemail-spamspam-prevention

how-to bann/block spam php scripts?


I could detect some PHP-scripts which are sending spam emails. Is there a way to bann or block files like this?

Do I have to delete those files or does "chmod 0 spam.php" help to stop sending spam emails?

I can't find a solution via Google. I hope somebody can help me.


Solution

  • You're talking about clients with CMS, I'm assuming your server is used for shared hosting. Take a look at Config Server Firewall the following features might be useful for you:

    1. Alert when end-user scripts sending excessive emails per hour - for identifying spamming scripts
    2. Suspicious process reporting - reports potential exploits running on the server
    3. Directory and file watching - reports if a watched directory or a file changes

    Hope this helps :)