Page 1 of 1

Hide inner URL

Posted: Mon Mar 26, 2007 11:14 pm
by pcoder
Hi,

This is my first topic for DevNetwork.
Actually, i just want to show the URL for main page.
And hide the inner URL part.
For example,
I just want to show http://www.xyz.com.
But i am not getting how to do it.
Your suggestion would help me very much.
Thanks

Posted: Mon Mar 26, 2007 11:22 pm
by John Cartwright
Moved to Client-Side.

Posted: Mon Mar 26, 2007 11:38 pm
by pcoder
Will you make it more clear, please

Posted: Mon Mar 26, 2007 11:59 pm
by pcoder
Can't we control it through the server side scripting?

Posted: Tue Mar 27, 2007 1:07 am
by feyd
Nope. Frames or Ajax-type stuff.

Posted: Tue Mar 27, 2007 1:26 am
by Kieran Huggins
google "domain cloaking" - it might be a feature of your DNS registrar

Posted: Tue Mar 27, 2007 1:35 am
by feyd
If I understand pcoder correctly, he simply wants to not change the URL, ever, shown in the browser. I don't recall domain cloaking doing this task.

Posted: Tue Mar 27, 2007 2:13 am
by Kieran Huggins
maybe "domain masking" is what he wants - domain cloaking appears to be somewhat different

Posted: Tue Mar 27, 2007 2:41 am
by webaddict
Well, I know it's not the best suggestion ever, but perhaps you'd like working with a frame. That way you can keep the url in the addressbar 'www.xyz.com', as long as link within the frame. Just don't forget that this is probably _not_ what you want, since you will disallow your users to bookmark a certain page on your site, as well as breaking the 'back' functionality of their browser.

My suggestion: just leave the URL's with GET parameters, nobody looks at them.

Posted: Thu Mar 29, 2007 2:16 am
by pcoder
If i am not wrong, domain masking is not the right solution.
Webaddict is right, but, frame is not secure to hide the link.
If u have any other , please let me know.
Thanks for ur time.

Posted: Thu Mar 29, 2007 3:12 am
by matthijs
pcoder wrote:Webaddict is right, but, frame is not secure to hide the link.
What do you mean with "secure"? Why aren't people allowed to see the source/url?

Posted: Thu Mar 29, 2007 3:22 am
by pcoder
My actual requirement is to hide the GET paramteter at the URL.
If I able to hide it through PHP, then the user can't view it through the source code.
If i use the frame, the user can easily see the link.

Posted: Thu Mar 29, 2007 4:32 am
by matthijs
Ok, next question: why would you hide the GET parameter? That parameter comes from the client itself, so what's the point (security-wise) in hiding it? You could also use POST if you want "clean urls", but again, POST vars also come from the client. Even a hidden input field in a web form is plain text in the source code. PHP is server side, so isn't able to change anything on the client side.