Referrer Script?

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!

Moderator: General Moderators

Post Reply
m7d7g7
Forum Newbie
Posts: 4
Joined: Fri Aug 15, 2003 11:21 am

Referrer Script?

Post 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 :)
User avatar
Seth_[php.pl]
Forum Commoner
Posts: 30
Joined: Sun Aug 10, 2003 5:25 am
Location: Warsaw / Poland

Post by Seth_[php.pl] »

Ohh now... another hacker :P
I don't think any one will help you.
Somone secure that way page for some reason.
It is not a hackers forum :evil:
Drachlen
Forum Contributor
Posts: 153
Joined: Fri Apr 25, 2003 1:16 am

Post 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 ?
macewan
Forum Commoner
Posts: 97
Joined: Mon Jul 07, 2003 8:27 pm

Post by macewan »

("REQUEST_URI");

you mean changing this?
User avatar
Seth_[php.pl]
Forum Commoner
Posts: 30
Joined: Sun Aug 10, 2003 5:25 am
Location: Warsaw / Poland

Post by Seth_[php.pl] »

He probably want to change refere to value that another site accept.

But yes... that sounds funny ;)
Last edited by Seth_[php.pl] on Fri Aug 15, 2003 12:32 pm, edited 1 time in total.
m7d7g7
Forum Newbie
Posts: 4
Joined: Fri Aug 15, 2003 11:21 am

Post 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.
macewan
Forum Commoner
Posts: 97
Joined: Mon Jul 07, 2003 8:27 pm

Post by macewan »

just told you the answer
User avatar
Seth_[php.pl]
Forum Commoner
Posts: 30
Joined: Sun Aug 10, 2003 5:25 am
Location: Warsaw / Poland

Post by Seth_[php.pl] »

Sorry I miss understood you
m7d7g7
Forum Newbie
Posts: 4
Joined: Fri Aug 15, 2003 11:21 am

Post by m7d7g7 »

macewan wrote:("REQUEST_URI");

you mean changing this?
lol.. what am i suppost to do with this? :oops: i'm just a beginner. could you please show me an example of a link?
macewan
Forum Commoner
Posts: 97
Joined: Mon Jul 07, 2003 8:27 pm

Post by macewan »

you are wanting to forge the request_uri
qartis
Forum Contributor
Posts: 271
Joined: Sat Dec 14, 2002 4:43 pm
Location: BC, Canada
Contact:

Post 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
m7d7g7
Forum Newbie
Posts: 4
Joined: Fri Aug 15, 2003 11:21 am

Post by m7d7g7 »

I want to be able to surf the website, not just make a hit to it.
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post 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.
User avatar
genetix
Forum Contributor
Posts: 115
Joined: Fri Aug 01, 2003 7:40 pm
Location: Sask, Regina
Contact:

Post 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');
?>
Post Reply