PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
hey,
I'm looking for a script that will link to a page, but make it look like it came from another page. I searched around but didnt find anything. Can someone point me in the right direction.
What? How can you understand what he said? "but make it look like it came from another page." ..? make what look like what? Something that looks like a url to http://www.yahoo.com, but instead goes to http://www.google.com ?
what? all i want to do is click a link, and when it goes to that site, have it look like it came from a diffrent site. how can you hack with this? i'm using it to test diffrent things on my site.
He's saying, if request_uri is set, then it's the browser which is doing it. If you're on a basic browser (IE) you can't play around with the HTTP headers.
If you just want to make a hit to a web page, reportedly from an arbitrary referrer, and don't care about surfing around at all, then you can use php to generate and send an HTTP request with a forged referrer in the headers.