Web Hosting Talk







View Full Version : ip tracking


dbnet
12-30-2001, 02:56 AM
Anyone know of a script I can use to track IP's on a order form...
:eek:

Honu
12-30-2001, 05:48 AM
Aloha
not sure how you are doing the programing try this(all on one line) then just print out the outfield #real_from# where needed ?? something like this should work ??
I use very close to this to get the host what page they came form and the browser they are using

<input type=hidden name="real_from" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT">

dbnet
12-30-2001, 06:26 PM
How do you get that to work with a form mail handler ?

I was trying to track ip's on orders..

Honu
12-30-2001, 06:43 PM
Aloha
I can not find my origianl example ?

we did it in coldfusion to track problems
it was pretty close to that but used a few CF variables
I got the original idea form matts mail script:
http://www.worldwidemart.com/scripts/formmail.shtml
in that he has a place to do the same thing so you may take a look at that in his script
in his readme here:
http://www.worldwidemart.com/scripts/cgi-bin/download.cgi?s=formmail&c=txt&f=README
scroll down tillyou see this:

@valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_USER_AGENT');

this is the part we got the idea from:
it puts itslef out like this in Matts script:
REMOTE_HOST: 2cust11.tnt9.mel1.da.uu.net
REMOTE_ADDR: 63.60.221.11
HTTP_USER_AGENT: Mozilla/4.6 [en]C-CCK-MCD monwin/020 (Win95; I)

see if that helps if not I can try to find the other we did but agin it was in CF
the remote grab works though with email forms etc.. as I still use matts updated script on a few sites that use those varibales
hope this helps some
sorry if it doesn't maybe someone else can jump in