Redirect URL

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
murthy
Forum Commoner
Posts: 50
Joined: Fri Aug 20, 2004 1:22 am
Location: India
Contact:

Redirect URL

Post by murthy »

Hi,

I am "header()" function .In the case of redirecting of One SITE1 to other SITE2.

i need to know URL of the SITE1 in redirecting site SITE2.

i.e i have to know all site URL's of redirecting to my site.

Thanks,
Murthy
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

instead of redirecting to $url2 -> redirect to $url2?url1=$url1

but evil people can and will exploit this.
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Or on the second site just check what the http_referer was.
peni
Forum Commoner
Posts: 34
Joined: Thu Nov 18, 2004 1:15 pm

Post by peni »

On the third hand evil people will know how to manipulate this, too :)
Post Reply