in reply to How to find out the calling URL??

You can use server authentication of the user (via .htaccess, if you're using Apache). Once a user is authenticated by the server, you can get at the REMOTE_USER environment variable.