Page 1 of 1
Referrer Script?
Posted: Fri Aug 15, 2003 11:21 am
by m7d7g7
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.
thanks,
Mike

Posted: Fri Aug 15, 2003 11:58 am
by Seth_[php.pl]
Ohh now... another hacker
I don't think any one will help you.
Somone secure that way page for some reason.
It is not a hackers forum

Posted: Fri Aug 15, 2003 12:15 pm
by Drachlen
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 ?
Posted: Fri Aug 15, 2003 12:24 pm
by macewan
("REQUEST_URI");
you mean changing this?
Posted: Fri Aug 15, 2003 12:31 pm
by Seth_[php.pl]
He probably want to change refere to value that another site accept.
But yes... that sounds funny

Posted: Fri Aug 15, 2003 12:31 pm
by m7d7g7
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.
Posted: Fri Aug 15, 2003 12:32 pm
by macewan
just told you the answer
Posted: Fri Aug 15, 2003 12:35 pm
by Seth_[php.pl]
Sorry I miss understood you
Posted: Fri Aug 15, 2003 12:37 pm
by m7d7g7
macewan wrote:("REQUEST_URI");
you mean changing this?
lol.. what am i suppost to do with this?

i'm just a beginner. could you please show me an example of a link?
Posted: Sat Aug 16, 2003 3:26 pm
by macewan
you are wanting to forge the request_uri
Posted: Sat Aug 16, 2003 3:36 pm
by qartis
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.
http://lwest.free.fr/doc/php/lib/index. ... nt&lang=en
Posted: Mon Aug 18, 2003 2:22 pm
by m7d7g7
I want to be able to surf the website, not just make a hit to it.
Posted: Mon Aug 18, 2003 4:02 pm
by jason
You want to be on
http://www.somepage.com and take a page from
http://www.anotherpage.com and make it appear on
http://www.somepage.com. You also want to be able to surf
http://www.somepage.com and when you click on a link on somepage.com, it gets the associated page on
http://www.anotherpage.com.
Is that right?
If so, look at the curl extension for PHP.
Posted: Mon Aug 18, 2003 4:56 pm
by genetix
why would he use that? Wouldn't it be more simple to just use require?
(mind if you use this your page has to be ended in .php ex. index.php)
Code: Select all
<?php
require('http://www.thatpage.com');
?>