Search Tools Links Login

Getting the URL the user came from before your web page!


This is a great tip that is NOT documented in the Interdev help..how to get the referring URL of the browser. You can use this to track what traffic you are getting and from where.

Original Author: Ian Ippolito (vWorker)

Code

Note: Just typing something in your browser and then typing your test page URL will NOT cause this to work. Your browser must follow an actual link from a domain other than your own to your test page to work. Otherwise it returns the empty string.





response.write "You came from " & Request.ServerVariables("HTTP_REFERER")





That's it...enjoy!

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 91 times

Categories

ASP/ HTML

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.