Jump to content

Phproxy With Http_referer As Root Of Dest Url..?


cyfer65
 Share

Recommended Posts

I've been looking for some ways to make a page either redirect or retrieve a Dest URL & spoof/forge the HTTP_REFERER as the Root of the Dest URL..So say I wanted my page to redirect to "http://stardrifter.org/cgi-bin/ref.cgi"but'>http://stardrifter.org/cgi-bin/ref.cgi"but I want the HTTP_REFERER to be set as the Root of that site so it will be "http://stardrifter.org/"or have my page retrieve "http://stardrifter.org/cgi-bin/ref.cgi" like a PHProxy does but also forge the HTTP_REFERER as the Root of that site too..Are any of these scenarios possible..??If so, then how exactly would I code them to work..??

Link to comment
Share on other sites

If you want to spoof the referer header then you need to make a full-blown proxy that will load a page and find and replace all of the links so that each link points to your proxy also. Then you can send requests using CURL from the server and can probably set whatever headers you want. You can't just redirect someone and set the header that they send though. You can set headers that the server sends, but you can't change how the client works. So if you want to do that then you need to make sure that all links are going through your proxy.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...