I am having a strange issue on my website since I started to test cloudflare a few days ago. My server crashes a few times a day with one and five minutes load avarages reaching up to 100 on a 2 cpu server. Note that my load averages are normally less than 2.
After investigating the cause of the issue from my server logs, I realized that the culprit is a user agent called “Java/11.0.10” with IPs starting from 162.158 and 141.101.
Some of the IPs are:
I can see that these IPs are coming from cloudflare. The requests hit several pages on the website at once, crashing the server.
Now my questions are:
Are these requests coming from cloudflare in order to preload the cache?
What is user agent “Java/11.0.10”?
If the requests are not coming from Clouflare, how can I block the user agent or the IP ranges from crawling the website while allowing legitimate users to continue to access the website?
These are not, they’ll be coming from some user probably looking for ways to exploit the site. (For example, looking for a .git folder, unprotected admin panel, etc). You should restore the IP like @sdayman sent in order to see the real IP of the user.
This comes from a program running with Java 11. They didn’t change the User-Agent so it’s the default one.
You can block the User-Agent easily in the Firewall Rules. You can also block the IP the same way (once it’s restored).