Hide inner URL

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Hide inner URL

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Moved to Client-Side.
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Post by pcoder »

Will you make it more clear, please
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Post by pcoder »

Can't we control it through the server side scripting?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Nope. Frames or Ajax-type stuff.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

google "domain cloaking" - it might be a feature of your DNS registrar
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

maybe "domain masking" is what he wants - domain cloaking appears to be somewhat different
webaddict
Forum Commoner
Posts: 60
Joined: Wed Mar 14, 2007 6:55 am
Location: The Netherlands

Post 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.
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Post 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.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post 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?
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Post 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.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post 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.
Post Reply