tags:

views:

178

answers:

4

Hi, i want to hide url from user. In this case if i have dedicated server i can open site by ip address directyly but it is shared hosting also i don't want to use frames. I am waitting suggestions, thanks.

+2  A: 

What do you mean by hide the URL?

You could open a window using javascript without an location widget (but this is easily worked around).

You could create different DNS entries for the host and use that in the URL.

You could use mod_rewrite to mangle up the path.

You could proxy the entire site on another machine.

What are you trying to achieve?

C.

symcbean
+1  A: 

There is no way to hide a web address, because the client's browser needs one to open a page - whether that is an IP address or a domain name is irrelevant.

You can obfuscate a page's URL using redirections and frames, but these protections are useless against any half-way serious attempt to find it out.

Pekka
A: 

The best way to hide an URI is to not open it. Today, most modern browsers understand the risks of opening a unknown URI resource and by default the pop ups have the location bar.

metrobalderas
A: 

"Hiding" a URL from a user is generally not a good thing to do, and therefore there are not really any good ways to do it without modifying every users computer that is going to access your website. (A technique that is bad and used by many phishing websites)

Instead, consider getting a website URL from a provider such as GoDaddy. Then just point the URL to use your server. (assuming you can set up DNS entries set up on the dedicated server)

Brian