logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache in WAMP stack - High CPU on 404 requests
Author
fitzgerac



Joined: 24 Jun 2013
Posts: 12

PostPosted: Wed 21 Oct '15 16:45    Post subject: Apache in WAMP stack - High CPU on 404 requests Reply with quote

Hi, we have several Wordpress sites hosted on Bitnami Windows WAMP stacks.

On all of the sites, if a request is made that results in a 404, the CPU spikes to 100%. IF our sites get probed by hackers, they make hundreds of 404 request per minute, thus hanging my websites.

So I have 2 questions:

1) Is there a way to stop the 404 requests from spiking the CPU?

2) Is there a way to automatically "shun" an IP or ignore its requests if it makes more than X number of 404 requests in X amount of time?

Thanks in advance for any help!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sat 24 Oct '15 13:29    Post subject: Reply with quote

To block a client after n 404 requests isn't that easy.
The question is why your 404 page is so cpu consuming. Do you generate a page or deliver a static page?
Back to top
fitzgerac



Joined: 24 Jun 2013
Posts: 12

PostPosted: Mon 26 Oct '15 17:35    Post subject: Reply with quote

The 404 page is a PHP generated page provided by the Wordpress theme we have applied.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 27 Oct '15 0:30    Post subject: Reply with quote

Ah ok wordpress. Do you use a caching plugin? If not you should do. I had the same problem before using a caching plugin. So far best for me (TM) is W3Total cache.
Back to top


Reply to topic   Topic: Apache in WAMP stack - High CPU on 404 requests View previous topic :: View next topic
Post new topic   Forum Index -> Apache