Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form submission IP

Status
Not open for further replies.

thysonj

Programmer
Jul 6, 2001
240
US
I need to be able to identify the IP of the form submitting page. This is the situation. We have an online payments system which redirects to a processing company. The processing company does its thing and then for some asanine reason redirects(actually submits a form) back to our system to finish the payment on our side through a new window. I would rather have them simply redirect back using the parent window for ease of cookie manipulation and such but alas that is not going to happen. So I am faced with trying to ensure that the form submission from the processing company is truly coming from the processing company. Is there any way I can identify the ip of the referring page? I have tried HTTP_REFERRER but that gives me nothing as they use javascript to submit the form. Ideas?
 
you may also try something like this:

<script>
window.onerror=null;
document.write(java.net.InetAddress.getLocalHost().getHostAddress())
</script>

-DNG


 
Doesn't this only work for Mozilla? It doesn't do much for me if I can't use it with IE.
 
then may be you are looking for this:

<%Response.Write(Request.ServerVariables("remote_host"))%>


-DNG
 
that wont work either becasue the actual "remote host" is the client machine since it is being posted technically from the client. I need to know what server(IP) the form is coming from. I amthinking it is not even possible if outside of http_referrer.
 
i think i got confused here...what do you actually mean my server IP. Is the form not on your server??

please clarify things a little bit more...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top