I got a pretty popular webpage called "myweb.html". Many webpages out there must have a link to my page. Now, I am being curious about who is pointing to my page.
To figure that out, an intuitive way is to use HTTP_REFERRER. But how? I don't want to move "myweb.html" to "someprog.cgi" or "server_side_include.shtml" because it's a tough job to ask those people currently pointing to "myweb.html" to update their links. Not to mention I don't even know what they are and where they are in the first place.
That's why I came up with a way that might help:
out_there.html -(1)--> myweb.html -(2)--> myweb2.shtml
(1): When people follow a link to myweb.html from some web page out there,...
(2): I want to automatically redirect them to "myweb2.shtml" where I can hopefully capture the HTTP_REFERRER using server side include. A lame way to redirect them is to use
<meta http-equiv=refresh content="1; ...>,
but HTTP_REFERRER is gone when it gets to myweb2.shtml.
P.S. server side include only gets executed when the files end with "shtml".
Can anybody tell me how I can figure out who is pointing to me?
Thanks in advance.