Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    New Coder
    Join Date
    Sep 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help needed on virtual address urgently...

    Is there something called virtual address which help to hide the real web address and display a so-called false address? Is there a way in doing this with coldfusion? If there isn't, what should i do? Do i have to configure setting? If yes, how should i do it?

    Need help urgently...
    Thanks...

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't know of any way to actually hide the real URL except for using a frameset with a top frame of 0 height. Perhaps there is a way server-side (although I doubt it), but I've never heard of it.

    Why do you want to hide the address?
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #3
    New Coder
    Join Date
    Sep 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    reply

    I want to hide it is because i don't want ppl to go to my website without passing the login page... (Which means that the person know the exact address to my datas) Are there any ways to prevent this from happening?

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Of course, you can make sure they have already logged into the website by comparing the username and password they enter to what is in your user database.

    I have never developed in cold fusion, but by doing a search on google, I found a couple of websites that may help. The cfhub site also seems to have some relevant articles to some of the past threads you have posted:

    http://cfhub.com/examples/secure/

    https://www.webapps.ccs.uoguelph.ca/...henticate.html

    http://cfhub.com/examples/

    Hope this helps.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #5
    New Coder
    Join Date
    Sep 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    reply... help needed urgently

    I got the codes for the checking password and user name... But I would not like to allow user to jump page... (Means that the user know the address for menu page and jump directly to the menu page without logging in)

    I would like to show a fake address instead of the real address...

    Thanks...

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    Then you have to create your pages a little different: in every page you should check if the user is logged in or not (can be done with an include), if the user is logged in, show the page, otherwise redirect to the login page with the requested page as an url-parameter, after liggong in, redirect to the originally requested page
    I am the luckiest man in the world

  • #7
    New Coder
    Join Date
    Sep 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    reply

    Using coldfusion to do it? How? How do i do it?

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    I dont speak coldfusion, but did you read the info on the links whammy posted? There should be info there on how to accomplish the functionality you need. It can be done in ASP/VBscript or ASP/JScript so i assume it can be done in CF too. but maybe im a fool thinking that
    I am the luckiest man in the world

  • #9
    New Coder
    Join Date
    Sep 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    reply

    Using coldfusion to do it? How? How do i do it?

  • #10
    New Coder
    Join Date
    Sep 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The websites whammy gave me is some kind like check for correct password and usename, right?

  • #11
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    i dont know, i didnt read them. But i assumed you did. So, if there is no info... maybe you should do a search in google yourself and see what comes up.....
    I am the luckiest man in the world

  • #12
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    hmmm,just took a quick peek, the second link: this one https://www.webapps.ccs.uoguelph.ca/...henticate.html should give you some help. I just read quickly, but the description told me this could be of use
    I am the luckiest man in the world

  • #13
    mat
    mat is offline
    Regular Coder
    Join Date
    Jul 2002
    Posts
    199
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I made a simple site a few months back in which the purpose was for me to learn how to make a half-decent login system with CF, You need to as someone already mentioned check if the user is logged in on every page.

    So you wirte a bit of code that checks if the user has logged in or not and include it in all pages you want to be secure.

    For instance I have a file called check.cfm which has the following:

    PHP Code:
    <CFSET bLoggedIn False>
    <
    CFIF IsDefined("Session.userID")>
        <
    CFIF Session.userID neq "">
            <
    CFSET bLoggedIn True>
        </
    CFIF>
    <
    CFELSE>
        <
    CFIF IsDefined("Cookie.userID")>
            <
    CFIF Cookie.userID neq "">
                <
    CFSET Session.userID Cookie.userID>
                <
    CFSET bLoggedIn True>
            </
    CFIF>
        </
    CFIF>
    </
    CFIF>

    <
    CFIF bLoggedIn eq False>
        <
    CFLOCATION url="login.cfm"// If user is not logged send them back to login page
        
    <CFEXIT>
    </
    CFIF

    then I just include that file on every secure page with this
    PHP Code:
    <CFINCLUDE template="check.cfm"
    Last edited by mat; 11-25-2002 at 10:11 AM.

  • #14
    mat
    mat is offline
    Regular Coder
    Join Date
    Jul 2002
    Posts
    199
    Thanks
    0
    Thanked 0 Times in 0 Posts
    another good tutorial that helped me:

    Creating a User Login Feature with ColdFusion

  • #15
    New Coder
    Join Date
    Sep 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I could not log into my website with my usual password and user name after putting every page with this code :

    <CFINCLUDE template="Check.cfm">

    What should i do?


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •