is there a simple way to find out if my website is being integrated e.g. via iFrame/ JS on another page? I am planning on writing a C# tool to detect these external uses of my page for statistics.
I am currently trying to read the request header from the client so that I can access the "referrer". This should indicate if a user is coming from an external site or just clicked a link on mine.
Is it possible to convert the request.header into a JSON so that I can access the referrer like this: .referrer?
string headers = String.Empty;
List<string> headerlist = new List<string>();
foreach (var key in Request.Headers.Keys)
{
headers += key + "=" + Request.Headers[key];
headerlist.Add(headers);
}