Thread: Restrict Access
View Single Post
  #3 (permalink)  
Old Sep 6th, 2007, 21:50
Mike Henson Mike Henson is offline
Junior Member
Join Date: Jan 2006
Location: West Wycombe
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Restrict Access

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?
Reply With Quote