index.jsp
-----------------------------
hier ist Index JSP
Header-Info abrufen
a.jsp
------------------------------
a.jsp页面通过判断 referer, 判断你从哪里来.
. jsp
Header-Info abrufen
<%=request.getHeader("Referer")%>
<%if(null == request.getHeader("Referer") || request.getHeader("Referer").indexOf("yourdomain.com") < 0){%>
做人要厚道
<%}else{%>
合法访问
<%}%>