Hello Alex
I wasn't thinking of using a password in the URL, just the fact that the user has arrived from a specific site / URL.
I will not have access to some of the sites / URL's that are allowed access so having a specific link created with an integral password would cause complications.
Incidentally, the actual referring page should be discarded for the purpose of this exercise so a referring URL of abc.com/link.
html should be seen as just abc.com
The javascript in the web page has been told that abc.com, def.com and ghi.com are all OK so it looks at the referer and allows those to proceed but if the referrer is from abc.co.uk (for example) or there is no referrer then entry is refused and the enquiry redirected elsewhere.
I hope this clarifies my query?