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

The reason it returns false even when reffered by "" is this line:
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 "" in the list of accepted refferers. Note: the previous line strips off the "http://"-part.