自学Servlet_6_respuest(获取客户机信息、防盗链)
获取客户机信息:
防盗链:最后的防盗链还是注册后观看String referer = request.getHeader("referer");if(referer==null || !referer.startsWith("http://localhost")){response.sendRedirect("/day06/index.jsp");return;}String data = "slkjdlsjfljadljslfjljlsjaqaa";response.getWriter().write(data);