Limit the availability of a internut driven PHP website only to a computer

Discussion in 'PHP' started by seocontentwriter, Sep 9, 2011.

  1. #1
    We want to have a PHP based attendance website. The employers shouldn't open this site from any other source other than the office computer, or a group of computer connected in LAN.

    We tried IP based login, but unfortunately due to the dynamic internet connection we have, it changes for every now and now then. We tried to get MAC address, but it is only working in the offline mode.

    We want it to work online like any other website, but we want it to be accessible from only our office computers.

    I hope any one of you guys will help me out in this.

    Thank in advance.
     
    seocontentwriter, Sep 9, 2011 IP
  2. wiremind

    wiremind Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can't do much without static IPs. Perhaps setup those computers to pass an additional header with each page request?
     
    wiremind, Sep 9, 2011 IP
  3. babushkyn

    babushkyn Member

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    2
    Trophy Points:
    26
    #3
    You could alter User Agent in browsers, add some unique string and check it with PHP.
     
    babushkyn, Sep 9, 2011 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    Is the site running on a computer on the LAN, or an outside computer? That makes a difference in how you solve the problem.
     
    Rukbat, Sep 10, 2011 IP
  5. itnnetwork

    itnnetwork Member

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #5
    If you are on the intranet and the computers are connected via a router, you can just:

    1) Setup a server on one of the computer on the network, and access its localhost via: http://IP.ADDRESS. Use the IP address of the computer locally, usually its something like 192.168.x.x
    2) Setup your router and disable DMZ to avoid people entering that local IP.
     
    itnnetwork, Sep 10, 2011 IP