problem in php pls

Discussion in 'PHP' started by obeidat, Feb 17, 2012.

  1. #1
    Make each user access only from his computer to the website

    all users have username and password

    how i can the user login from his computer

    i know th php using server mac not client mac

    what the soluation
    Regards
     
    obeidat, Feb 17, 2012 IP
  2. ker

    ker Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Man... How can server know whose computer is?!?!?!
    :confused: :D
     
    ker, Feb 17, 2012 IP
  3. obeidat

    obeidat Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah
    i asked you
    how i can that
     
    obeidat, Feb 17, 2012 IP
  4. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #4
    Hi there,

    Why not make a little registration form that will save some specs from the user (ip address, hostname, username and password) and then you can activate accounts that you trust.
    Then the users can login (only if there are allowed to)

    But your description is to small to give a full answer, so please tell us your wishes!
     
    EricBruggema, Feb 17, 2012 IP
  5. obeidat

    obeidat Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ip address its changed
    but mac adress not change
     
    obeidat, Feb 17, 2012 IP
  6. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #6
    MAC cannot (for as far i as know) not beeing seen by PHP (external network).
     
    EricBruggema, Feb 17, 2012 IP
  7. nikipatel

    nikipatel Member

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #7
    u can use cookie...store username as cookie when user registers and then match cookie with username every time user gets log in to d website.

    or you can PM me to get code to know MAC.
     
    nikipatel, Feb 18, 2012 IP
  8. jolamar

    jolamar Active Member

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    98
    #8
    You may want to look into .htaccess to block/allow specific IPs or define custom users that are allowed to see the site. Here is a great tutorial for .htaccess

    net.tutsplus.com/articles/news/htaccess-files-for-the-rest-of-us/

    -
    Lil Josh
    liljosh.com
    web developer
     
    jolamar, Feb 18, 2012 IP
  9. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #9
    EricBruggema, Feb 18, 2012 IP
  10. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #10
    MAC address is easier to change (using software, or network controller management) than IP address (need to restart router/model). Not a good idea to rely on it.
     
    ThePHPMaster, Feb 19, 2012 IP
  11. ker

    ker Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #11
    That's why I said that there is no way that you could know whose computer is?!?!?!
     
    ker, Feb 22, 2012 IP