Im writing this downloading antileech script that uses headers to print the file and i ran into a problem, how would i make it so that the referer has to be coming from the site and any of its pages, and possibly 1 or 2 other sites allowed
lets say i have
www.google.com as one
www.yahoo.com as the other
would it make a different if it came from http://www.google.com/help/index.html so that the script would be reading the "http", "/help/index.html" and not allow it cause of that??