Reply
Hiding a part of URL
Old 05-11-2005, 10:45 AM Hiding a part of URL
Junior Talker

Posts: 3
Hello. I wasn't sure if this is Java related, but here it is.

I have a Password gate Java Script on my site. I can set my list of usernames and passwords. Now what I would like to do, but not sure how... is when the user logs in, I would take them to a members only page, but it will still show the address above (Address bar),

Is there a way to hid that "members only" and possibly keep it from being added to favorites? I am not good at coding. Slowly learnign everything I know. Any help would be great.

Wolphe
Wolphe is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-11-2005, 01:01 PM
chrishirst's Avatar
Super Moderator

Latest Blog Post:
Am I impressed or what?
Posts: 14,899
Location: Blackpool. UK
You need server-side code for this. That way the page can be redirected to a login page if not logged in. so even if the page is bookmarked the visitor will be redirected.

how depends on what server side code you can use. Any javascript login system is by nature insecure because the info has to be client side even the usernames and passwords will be in the page source for anyone to see.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-11-2005, 03:55 PM
Jared's Avatar
Skilled Talker

Posts: 52
Location: St. Anthony, ID
You'll want to learn a language that can code CGI (such "perl") or PHP. These are server side codes that can do what you want to do. I would suggest getting a remote server that supports these, as setting them up on your personal computer is nearly impossible without being baby-stepped through it. I've never gotten it to work, I've never been baby-stepped through it!

websiteallies.com supports both PHP (however it is an older version) and the newest version of perl. Pageresource.com has tutorials for perl, but I'm not sure about PHP. If you learn one, you've pretty well learned the other though.
Jared is offline
Reply With Quote
View Public Profile Visit Jared's homepage!
 
Old 05-12-2005, 08:57 AM
Junior Talker

Posts: 3
Quote:
Originally Posted by chrishirst
Any javascript login system is by nature insecure because the info has to be client side even the usernames and passwords will be in the page source for anyone to see.
Thats fine. it isnt a really important thing to hide. What my site is really is based on a game. Guess you can call it a "clan site". The restricted page(s) are for clan members only. And just has Game related info is all.

So what is this server-side thing you were talking about? Is there a place I could find that script or something similar or anything?

Wolphe
Wolphe is offline
Reply With Quote
View Public Profile
 
Old 05-12-2005, 10:20 AM
chrishirst's Avatar
Super Moderator

Latest Blog Post:
Am I impressed or what?
Posts: 14,899
Location: Blackpool. UK
depends on what server-side code you can run ASP, PHP, Perl

there are lots of PHP samples around, ASP ones are a bit rarer without using a database, My Site Login code and there is one at Elated
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-12-2005, 06:46 PM
Junior Talker

Posts: 3
Thank you lots. Fromt the looks of both. I will work on the elated one.

One last question though. Does ASP work with any webhosts? Is ASP a standard feature that is available for all web hosts? Reason I ask, is that I am using a free web hosting service. I looked all around my web hosts site and found no info if ASP is accepted and/or allowed. I emailed them that question, but no response yet.

Wolphe
Wolphe is offline
Reply With Quote
View Public Profile
 
Old 05-12-2005, 06:58 PM
chrishirst's Avatar
Super Moderator

Latest Blog Post:
Am I impressed or what?
Posts: 14,899
Location: Blackpool. UK
Nope only windows hosting supports asp mainly, there are a few hosts on *nix who run Sun one ASP (formerly ChilliSoft! ) but it does have some differences from MS ASP.

More host will support a LAMP environment (Linux, Apache, MySQL, PHP)

But it's rare to find a free host with any server-side scripting at all.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-12-2005, 08:28 PM
RootedOnTheWeb's Avatar
Skilled Talker

Posts: 95
Location: Central Illinois
Wouldn't it be possible to use javascript to open the page in a new window with no address bar? Granted, the address can still be obtained when doing it this way but not many would know how.

I don't know... it was just my first thought when I read the question.
__________________
Dn Lodge domain and webmaster forum
RootedOnTheWeb is offline
Reply With Quote
View Public Profile Visit RootedOnTheWeb's homepage!
 
Old 05-20-2005, 09:10 AM
spudge's Avatar
Skilled Talker

Posts: 77
Location: Kirkland, WA
If you don't want to deal with messy Server-Side code, I'd have them enter in their user name only on the gate, and then have them directed to a member page specifically designed for them. This page could be encrypted with a password prompt directly on it. That way it wouldn't matter if one did know the URL or not, as it would be encrypted with a password.

One ready-made solution for doing this is the xICE Web Protection Desktop:
http://www.xice.net/webprotect.html
spudge is offline
Reply With Quote
View Public Profile Visit spudge's homepage!
 
Reply     « Reply to Hiding a part of URL
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15499 seconds with 12 queries