When a request arrives at my Java servlet, I check its UserAgent:
protected void service(HttpServletRequest request, HttpServletResponse response){ final String UA = request.getHeader("User-Agent"); eu.bitwalker.useragentutils.Browser browser = UserAgent.parseUserAgentString(UA).getBrowser();}
Most queries have a UA (User Agent) with information in it, for example. Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36 .
Some requests (about 10%) have only Mozilla/5.0 or Mozilla/4.0 .
Does this mean they are bots?
Is it possible that something in front of the servlet will delete the corresponding part in UA?
I use the HaraldWalker User Agent Utilities to identify UAs and return Mozilla for these UAs.
But this online tool returns unknown .
Can someone explain?
source share