Hello PHP magicians!
I am trying to initiate a download from a server that will give a 403 forbidden unless the referrer is set to the same domain. Currently Header() allows me to redirect the user to the file location and init a download, but referrer is always set to my script. Use of curl would cause the file to download on the server side. Can anyone help me find a work around to redirect the user while also setting the referrer???
Example code snippet:
header("Location: $filelocation"); # Need to set Referer = $url