Log in

View Full Version : hide URL in address bar



camalus
07-27-2006, 09:34 PM
I would like to make it so that no matter what page my visitors are on, the only thing they see in the address bar is "www.mydomain.com". I don't want the sub pages to be visible. Can anyone help me with this?

Btw, I'm new here...Hi :)

Twey
07-27-2006, 10:58 PM
Before we answer you, a pretty obligatory question is: why?

There is a way to do it, but it can greatly inconvenience users, and depending on how your site works, possibly render it unusable to some. Therefore, before we answer, I think it wise to determine if there is any other way of achieving what you want to do, or even whether it is necessary.

BLiZZaRD
07-27-2006, 11:52 PM
Frames.. (shudder)

souniqueitzunbelievable
10-15-2007, 12:24 AM
i was also wondering how to hide the url in the address bar but i was asking because i am in the process of making a site and i will have a chat on the site exclusively for a group i created and i want the chat to only be available through my site or by me giving out the address so how can i hide the url in the address bar??? :)

djr33
10-15-2007, 12:28 AM
No. You can use frames and have the address of the outermost frame appear, not of the actual page, but it is very easy to get around this.

Why don't you use a password?

souniqueitzunbelievable
10-15-2007, 12:35 AM
ok thnks 4 the reply but 2 things what do you mean by frames (srry im new to this) and i was thnkng of using a passwd but anybody can pass a passwd around the point of the chat is to promote my group and get more ppl to join if they ko about the group they wnt join the group if they can get the pass from someone else right? :cool:

djr33
10-15-2007, 12:45 AM
If you give out any form of access, it can be spread around again, including a special URL... whatever.

The only way to really lock people out would be to specifically identify each user.
For example, you could have an account for each user and only allow one person per account at one time-- that way they can't give out their info as they'd already be using it. Also, if it is associated with their individual screen name, the users would be more hesitant to give out their "personal" login info.
Secondly, you could actually block out people by IP address, but that would be complex and difficult to maintain. IP addresses change and are somewhat difficult to determine (you'd probably need to ask all of your friends to check-- and teach them how to check), plus it would be based on specific connections, so they'd only be allowed to log on from that computer-- and anyone else could from that as well.


Frames... take a look at this tutorial here:
http://www.htmlcodetutorial.com/frames/_FRAMESET.html

You could use iframes instead, but a frameset would fit this best.

HOWEVER!!! Framesets are not good for a number of reasons, so this isn't great solution.
Anyone who knows what they are doing can get around it without much trouble as well.

It's a gimmick that might trick a few people, but not a real solution.

souniqueitzunbelievable
10-15-2007, 12:53 AM
thnks 4 the hlp and ur opinion i had considered individual usernames and passwrds but its like 400+ ppl in my group too many individual logins but n e wayz thnks again 4 the hlp :D

tech_support
10-15-2007, 06:31 AM
Why don't you get them to register?

souniqueitzunbelievable
10-15-2007, 06:10 PM
because i want this site to be as simple as possible for users and..... i dont know how to set something like that up :(

djr33
10-15-2007, 06:17 PM
I don't want to build an airplane, but I want to fly.
//shrug

souniqueitzunbelievable
10-16-2007, 08:22 PM
to tell the truth its not so much as not wanting to write the code and go through all the setting up registration and all the otha stuff i would hav to do its juss that i have no time. this website is more of a hobby not a lifetime commitment.

Twey
10-16-2007, 08:29 PM
It doesn't take that long, you can even use a pre-made one (http://www.twey.co.uk/?q=loginscript), and a lot of application frameworks (but not Cake) have them built in.

djr33
10-16-2007, 09:08 PM
As for lack of time, I repeat "I want to fly, but I don't have time to build an airplane."
If a premade script works, great. If not, you've got to decide if you want to spend the time to figure it out. There's no trick to make it write itself.