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:
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.
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");
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.