Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Apache in WAMP stack - High CPU on 404 requests |
|
Author |
|
fitzgerac
Joined: 24 Jun 2013 Posts: 12
|
Posted: Wed 21 Oct '15 16:45 Post subject: Apache in WAMP stack - High CPU on 404 requests |
|
|
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
|
Posted: Sat 24 Oct '15 13:29 Post subject: |
|
|
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
|
Posted: Mon 26 Oct '15 17:35 Post subject: |
|
|
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
|
Posted: Tue 27 Oct '15 0:30 Post subject: |
|
|
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 |
|
|
|
|
|
|