request.servervariables error

P

preet

I posted this elsewhere ; probably the wrong place so i am posting this
again

I am using the following script:

hrefer=Request.Servervariables("HTTP_REFERER")
hrhost=Request.Servervariables("REMOTE_HOST")
hruagent=Request.Servervariables("HTTP_USER_AGENT")
hriisid=Request.Servervariables("INSTANCE_ID")
hrsname=Request.Servervariables("SERVER_NAME")
hladd=Request.Servervariables("LOCAL_ADDR")
ipadd=Request.Servervariables("REMOTE_ADDR")

If session("ipadd") <> ipadd Then
session("ipadd")=ipadd
sql="insert into iplog (hrefer, hrhost, huagent, hiisid, hsname,
hladd,
ipadd) values " & _
"('" & hrefer & "', '" & hrhost & "', '" & hruagent & "', '" &
hriisid
& "', '" & hrsname & "', " & _
"'" & hladd & "', '" & ipadd & "')"
conn.execute sql
End If

Problem is that it works fine, but does not record the refering website
; like if the request comes from a google search ; it does not record
the google querystring used, so i am not able to extract the keywords
used.

Suggest.




A comprehensive knowledgebase on EECP treatment and procedures
worldwide.
http://www.eecpworld.com
Provide your suggestions for improvement
 
M

McKirahan

preet said:
I posted this elsewhere ; probably the wrong place so i am posting this
again

I am using the following script:

hrefer=Request.Servervariables("HTTP_REFERER")
[snip]

Problem is that it works fine, but does not record the refering website
; like if the request comes from a google search ; it does not record
the google querystring used, so i am not able to extract the keywords
used.

Suggest.

[snip]

Request.Servervariables("HTTP_REFERER")

is often block by firewalls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top