ok im working on a downloading script and i was wondering how would i make it so that the php, gets the referer, checks to see that it is one you specified, and if no it prints lets say "badref.html"
but what i want the sites specified only to be
google.com
yahoo.com
and for the last part to let it be a wild card so if you come from http://www.google.com/index.html it wont matter because you could come from that site.