HTTP POST spam

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri May 18, 2012 3:20 pm

HTTP POST spam

Post by soja »

For the past few nights I have been getting attacked by multiple IPs all spamming my web server with the same HTTP POST.

Code: Select all

95.5.74.195 - - [07/Jun/2014:20:38:22 -0400] "POST /index.php/1.0" 404 81913 "-" "-"
When they do this, they exhaust the CPU on my 3-core VDS here. Is there anything I can do to filter this specific attack rather than blocking the IPs in the firewall(this is what I have been doing). Filtering in the firewall works, but every night it is new IP addresses.

Thanks.
Not a NFO employee
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: HTTP POST spam

Post by kraze »

Someone else may be able to offer better insight here, but if you're able to grab traffic to the VDS and full the detailed dump are the packets staying consistent? If so, you should be able to form a block using that which should stop it before it reaches your VDS.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: HTTP POST spam

Post by soja »

Since the packet is a common HTTP request, there is no way I found with the attack tonight to block it without blocking legitimate traffic as well. I blocked 4 more IPs tonight, bringing the total to 41 IPs blocked :/
Not a NFO employee
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: HTTP POST spam

Post by Edge100x »

This looks like a timeout-based attack. Are you running mod_reqtimeout with appropriate settings?
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: HTTP POST spam

Post by soja »

I was not, I am installing it now, and using cPanels recommended configuration for now. Thanks a bunch for the suggestion, John.

http://docs.cpanel.net/twiki/bin/view/E ... commended)
Not a NFO employee
Post Reply