For Programmers: Free Programming Magazines  


Home > Archive > ASP > May 2006 > Capture IP on web form









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Capture IP on web form
Zen Masta

2006-05-26, 6:56 pm

I've been getting a lot of harrassment emails on a web form recently and I
want to display/capture the users IP/host header(not sure if thats the right
term... but I know you can do it in IRC) if possible. Does anyone know a
free script for this? The form is in ASP not .net

I want to amend my form so it displays the IP/hostheader similarly to this
page.
http://www.schoolpad.net/page.php?TeacherID=293&Page=3


surf_doggie

2006-05-26, 6:56 pm

How about trying this script. It will give you everything that can be
returned and you can pick and choose what you would like to use.

http://www.4guysfromrolla.com/webtech/092298-3.shtml

Earl
www.jhdesigninc.com

vicky

2006-05-27, 3:56 am

Hi Zen,

You can get Ip address by using the following code.

<%
response.Write request.ServerVariables("remote_host")
%>

Is it not simple.

:)

vicky

Zen Masta

2006-05-27, 3:56 am

Thanks, thats just what I needed.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com