I am placing a JS file to remote server(s). I d like to know where the request is coming from.
ie : i have a js on google.com and upon user click on the link that s produced by js, it triggers some c# code on my server, but i also have the same js on yahoo.com and i d like to be able to know where the request is coming from.
How to find this ?
In ASP.NET, the referring page is given by
Request.UrlReferreras a Uri object.This is also available as
Request.ServerVariables["HTTP_REFERER"]as a string.