1:防盗链
String referer = request.getHeader("referer");
if (referer == null || !referer.startsWith("http://localhost:8888")) {
response.sendRedirect(request.getContextPath() + "/index.jsp");
} else {
request.getRequestDispatcher("/WEB-INF/jsp/index1.jsp").forward(
request, response);
}