How can I hide the URL in this example

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
taylormade
Forum Newbie
Posts: 3
Joined: Wed May 06, 2009 2:36 am

How can I hide the URL in this example

Post by taylormade »

I'm trying to launch a PHP page (B) from another one (A)
This is the code I'm using now:
echo "<meta http-equiv=\"Refresh\" content=\"0; url=secure_01.php\">";
However, the URL ( secure_01.php ) shows up in the browser title bar.
This is not acceptable since this is a secure page and getting to it is the result of logging in on the previous page (A).
How can I code this so that the URL does not reveal the page name?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How can I hide the URL in this example

Post by Christopher »

Put it in a frame/iframe.
(#10850)
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: How can I hide the URL in this example

Post by onion2k »

Hiding things doesn't make them secure. It's trivially simple to find out the name of anything your browser is displaying.
taylormade
Forum Newbie
Posts: 3
Joined: Wed May 06, 2009 2:36 am

Re: How can I hide the URL in this example

Post by taylormade »

arborint wrote:Put it in a frame/iframe.
do you think you could illustrate the code (php) that would do that.
I'm quite new to php.
taylormade
Forum Newbie
Posts: 3
Joined: Wed May 06, 2009 2:36 am

Re: How can I hide the URL in this example

Post by taylormade »

true...and IFRAME is not the answer, since as stated, it is easy to see the target URL if you check the page source.
Need a better answer.?
Post Reply