View Single Post
  #12 (permalink)  
Old December 5th, 2004, 09:26 PM
Jonax Jonax is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: , , Denmark.
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

The reason it returns false even when reffered by "http://home.cogeco.ca/~grimreaper/" is this line:
Code:
domainname=domainname.substring(0,domainname.indexOf("/"))
it matches the _domainname_ not the url... It looks for the first forward slash.
I haven't tested the script, but I assume it will work if you put "home.cogeco.ca" in the list of accepted refferers. Note: the previous line strips off the "http://"-part.

Reply With Quote