Php programmign help

mason

New member
Aug 13, 2006
872
6
0
I'm trying to make a script that spoof my referer, but am having a little trouble making it work(if possible).

I'm trying to do something like this:

PHP:
header("Referer: $ref\r\n");
header("Location: $site\r\n\r\n");


//I've tried another variation
header("Referer: $ref\r\nLocation: $site\r\n\r\n");
both don't work. the second one gives me an error. $ref and $site = websites.

I know you can spoof referers using curl, but I don't want to go that route b/c using curl means I'll need to print the contents of the site onto my own site's domain which I don't wanna do. I wnat to actually be redirected to the domain in the variable $site.
 


Is that even possible? referer is set by the client browser
The same page works but I dont think it works like that to go to another page