Results 1 to 2 of 2

Thread: Login/Website/Database Security

  1. #1
    Join Date
    Jul 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Login/Website/Database Security

    I want to learn how to make a very secure website with info available only to people who have permision to access the page.
    So a few questions:

    1.)
    Can I hide my db so that i can be accessed ONLY by asp scripts? If no then:
    Is password protecting the database, hashing passwords and making long and complicated database names (like alphabets and numbers is weird combinations) enough to protect the database?

    2.) In firefox, When i open Tools > Page Info > Security it says "Information sent over the internet without encryption can be seen by other people while it is in transit." How do i encrypt data sent to my page/site?

    3.) This is an idea please tell me if u see any flaws in it.
    If a user wants to be remebered on a computer i can add a cookie with his/her username and a code(GUID).in the database store the code(GUID) with his/her username and password. Every time he/she opens a page check the code with the username and delete the GUID(both cookie and in the database) and add another GUID(again db and cookie). This will make sure his/her code cant be stolen so that someone can add the same cookie to their comp and access his/her account.
    Would this work?

    Can i do more to protect my site?
    Thanks in adv.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Can I hide my db so that i can be accessed ONLY by asp scripts? If no then:
    Is password protecting the database, hashing passwords and making long and complicated database names (like alphabets and numbers is weird combinations) enough to protect the database?
    Not quite, but you can set it to be only accessible from 127.0.0.1 (the same machine it's running on). That and a password are quite adequate.
    2.) In firefox, When i open Tools > Page Info > Security it says "Information sent over the internet without encryption can be seen by other people while it is in transit." How do i encrypt data sent to my page/site?
    That's a long and complex process. Here are HOWTOs for Apache on *n?x and *n?x and Windows (less detailed).
    3.) This is an idea please tell me if u see any flaws in it.
    If a user wants to be remebered on a computer i can add a cookie with his/her username and a code(GUID).in the database store the code(GUID) with his/her username and password. Every time he/she opens a page check the code with the username and delete the GUID(both cookie and in the database) and add another GUID(again db and cookie). This will make sure his/her code cant be stolen so that someone can add the same cookie to their comp and access his/her account.
    No, I don't see any huge flaws in it. Might be a bit of a strain on the server, though, if you have many users.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

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