Hiding account info in a URL

Discussion in 'Programming' started by Whitey, Jun 9, 2008.

  1. #1
    Hey

    I'm working on an idea that will turn a link like: http://site.com/file.rar into this:

    http://user:pass@site.com/file.rar
    Code (markup):
    But, I don't want the users to be able to see the user : pass bit. I have tried hiding it with TinyURL, but when anyone downloads it Firefox says "Are you sure you want to connect to the site useing this username and password:"

    So is there a way I can hide the link from the user?

    Cheers :)
     
    Whitey, Jun 9, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Impossible. The users browser has to be able to see the username & password in order to be able to use it to access the resource.

    Jay
     
    jayshah, Jun 9, 2008 IP
  3. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #3
    Barti1987, Jun 9, 2008 IP