Forum Moderators: open
Iam novice about javascript.
other website will insert a jave script code from my site so that i will update the content to their website automatically.
Now i have a requirement, that i need to know which website are using my code.Right now my code will serve their request but dont report who is requesting.
How can i know which url is requesting my service?
TIA
Type this into your browser's location bar now for a demo:
javascript:alert(document.referrer);
You may prefer, in the future, to arrange for urls to your site to include unique codes.
e.g.
www.yourdomain.com/page.html?unique_idcode
The unique_idcode should be allocated by you to identify each referrer.
Which system is best (or a combination of both) will depend on what sort of service you are offering and other factors.
Kaled.