@Test public void testIsSpiderString() { String candidate; candidate = "192.168.2.1"; assertTrue(candidate + " did not match IP patterns", SpiderDetector.isSpider(candidate, null, null, null)); candidate = NOT_A_BOT_ADDRESS; assertFalse(candidate + " matched IP patterns", SpiderDetector.isSpider(candidate, null, null, null)); }
public static boolean isSpider(String clientIP, String proxyIPs, String hostname, String agent) { return spiderDetectorService.isSpider(clientIP, proxyIPs, hostname, agent); }
SpiderDetector { public static boolean isSpider(String clientIP, String proxyIPs, String hostname, String agent) { return spiderDetectorService.isSpider(clientIP, proxyIPs, hostname, agent); } }
SpiderDetector { public static boolean isSpider(String clientIP, String proxyIPs, String hostname, String agent) { return spiderDetectorService.isSpider(clientIP, proxyIPs, hostname, agent); } private  SpiderDetector(); }
SpiderDetector { public static boolean isSpider(String clientIP, String proxyIPs, String hostname, String agent) { return spiderDetectorService.isSpider(clientIP, proxyIPs, hostname, agent); } private  SpiderDetector(); static Set<String> getSpiderIpAddresses(); static Set<String> readPatterns(File patternFile); static boolean isSpider(String clientIP, String proxyIPs,
                                   String hostname, String agent); static boolean isSpider(HttpServletRequest request); static boolean isSpider(String ip); }
SpiderDetector { public static boolean isSpider(String clientIP, String proxyIPs, String hostname, String agent) { return spiderDetectorService.isSpider(clientIP, proxyIPs, hostname, agent); } private  SpiderDetector(); static Set<String> getSpiderIpAddresses(); static Set<String> readPatterns(File patternFile); static boolean isSpider(String clientIP, String proxyIPs,
                                   String hostname, String agent); static boolean isSpider(HttpServletRequest request); static boolean isSpider(String ip);  }