How to prevent outgoing spam (3 steps)
Posted: Fri Apr 10, 2015 7:00 am
Hi everybody,
I have a VestaCP installation with around 20 users, the server got hacked with various upload scripts and base64 injectons on daily basis. I have a support subscription and the guys at VestaCP have been doing a great job helping me point out some weaknesses on my server.
This is how I did to prevent spam and the overall server load:
1. First of all, install Malware Detect and run a full scan to remove scripts with bad code.
Don't forget to enable ClamAV in Malware Detects configuration since it's embedded with
VestaCP
https://www.rfxn.com/projects/linux-malware-detect/
2. To prevent base64 injection and file uploads you'll need some kind of web filtering firewall. I use the latest Wordpress with the latest plugins but still got hacked, I then found this plugin:
https://wordpress.org/plugins/ninjafirewall/
NinjaFirewall is awesome, it block all eval, base64 and file upload attempts. Now I don't have to worry about any Wordpress websites being hacked.
3. Last step, use CloudFlares free account and get the following features:
-Masked IP
-Mask all email addresses on your site
-Block hack attempts
-Offload your server
-If your server goes down your sites will still be part functional
Thats all, I hope this help someone!
My server graphs went from crazy to allmost nothing in 6 hours after I applied the above 3 steps to all my accounts/domains
I have a VestaCP installation with around 20 users, the server got hacked with various upload scripts and base64 injectons on daily basis. I have a support subscription and the guys at VestaCP have been doing a great job helping me point out some weaknesses on my server.
This is how I did to prevent spam and the overall server load:
1. First of all, install Malware Detect and run a full scan to remove scripts with bad code.
Don't forget to enable ClamAV in Malware Detects configuration since it's embedded with
VestaCP
https://www.rfxn.com/projects/linux-malware-detect/
2. To prevent base64 injection and file uploads you'll need some kind of web filtering firewall. I use the latest Wordpress with the latest plugins but still got hacked, I then found this plugin:
https://wordpress.org/plugins/ninjafirewall/
NinjaFirewall is awesome, it block all eval, base64 and file upload attempts. Now I don't have to worry about any Wordpress websites being hacked.
3. Last step, use CloudFlares free account and get the following features:
-Masked IP
-Mask all email addresses on your site
-Block hack attempts
-Offload your server
-If your server goes down your sites will still be part functional
Thats all, I hope this help someone!
My server graphs went from crazy to allmost nothing in 6 hours after I applied the above 3 steps to all my accounts/domains