How to hide the full url of a website and show domain name

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
kentorks
Forum Newbie
Posts: 2
Joined: Fri Aug 29, 2008 11:03 am

How to hide the full url of a website and show domain name

Post by kentorks »

How to hide the full url of a website and only display the domain name
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: How to hide the full url of a website and show domain name

Post by jackpf »

What?
jamkelvl
Forum Newbie
Posts: 9
Joined: Thu Jun 25, 2009 3:23 pm

Re: How to hide the full url of a website and show domain name

Post by jamkelvl »

Frames?
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Re: How to hide the full url of a website and show domain name

Post by kaisellgren »

What drives you to this situation?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: How to hide the full url of a website and show domain name

Post by onion2k »

jamkelvl wrote:Frames?
Frames don't hide anything.
SvanteH
Forum Commoner
Posts: 50
Joined: Wed Jul 08, 2009 12:25 am

Re: How to hide the full url of a website and show domain name

Post by SvanteH »

Obviously the website needs to have a sort of identifier of each unique page. Else it wouldn't be able to know which page you are requesting.
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Re: How to hide the full url of a website and show domain name

Post by Skara »

Actually, this would be interesting just to see if you could do it. I could see it done two ways.

1) Use POST rather than GET. Use onclick to load data into a form and submit it.
2) Use session/cookie data. Which begs the question: Can session/cookie data be set without the use of a form?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: How to hide the full url of a website and show domain name

Post by jackpf »

Well, you'd still have to send the data for to the browser for it to post back...but you could do it with sessions.

Although I don't really see the point. Why would you want to prevent the user from knowing what page they are on?
thewebhostingdir
Forum Newbie
Posts: 18
Joined: Fri Jul 17, 2009 1:15 am

Re: How to hide the full url of a website and show domain name

Post by thewebhostingdir »

I think he wants this for better looking URL's.

But you can still get better URL's, using rewritting.. :)
AccuWebHosting.Com - Windows VPS Hosting
ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale |
Brick7.com | TheWebHostingDir.com
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: How to hide the full url of a website and show domain name

Post by jackpf »

Generally people want pretty URL's for SEO, but since bots don't even use cookies or post data, then this would not work at all and the bot would only be able to see the index page.

Maybe if the OP explained what they actually wanted......hint hint.
Post Reply