Reading view

How do you deal with large numbers of 404 requests in WordPress?

I've noticed that my server receives a surprisingly large number of requests every day for random URLs that don't exist.

Every one of those requests eventually results in a 404, but WordPress still has to bootstrap, load plugins and process the request before it can determine that the page doesn't exist.

With enough of these requests, that seems like a lot of unnecessary PHP work for something that will only return a 404 anyway.

How do you deal with this?

Do you just accept it as normal WordPress overhead, handle these requests before they reach WordPress, or use some other approach?

https://preview.redd.it/4k06jdd5ovkh1.png?width=1491&format=png&auto=webp&s=03eb110d01cb42c41a8b9887fd9de3d5d472f514

submitted by /u/Good_Flight6250
[link] [comments]
  •  
❌