Forum Moderators: coopster
By bypassing it, I've used header(location: $url) to refer my users to go directly to that site. But it doesn't work.
As the form in the targeted site is adopting GET method, so i can build up an URL for my users to go. The url is all correct.
Let say, I form an url like this:
http://www.example.com/index.php?string=abcabcabc
When I use header() to redirect my users to go, it doesn't work.
When I type it directly in my browser, it then works.
What's wrong with this? Is header() not enough to change http_referer?
If you mean you want to setup the referer to show site B right after the redirect you can't as you do not control the client end. Your server could setup the request though (site A requests the form) in which case you control the headers but then the server makes the request not the client.