You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Saul Q Yuan <yu...@dataanvil.com> on 2004/03/11 19:25:10 UTC

[OT] How to tell whether a HTML/JSP page is on the same machine as the Servlet it calls

Hi,
 
I am trying to find out whether a HTML or JSP page in on the same
machine as the Servlet it calls. The reason I want to do this is
preventing a page not on the Servlet machine from posting to the
Servlet. I tried comparing the Referer header info with the RemoteHost
info, but unfortunately request.getRemoteHost() doesn't give me the real
host name when the Servlet machine is behind the firewall. Any ideas
about this?
 
TIA,
 
Saul