Uniquely identify one computer

后端 未结 9 865
渐次进展
渐次进展 2020-12-07 02:17

I work for a university, and i\'m implementing a PHP web app that needs to have different behavior when it is visited from one certain computer. The problem i am running in

相关标签:
9条回答
  • 2020-12-07 02:50

    You can set a cookie. This will be remembered by the client and transmitted to the server as part of every request. More information here: http://www.w3schools.com/PHP/php_cookies.asp

    0 讨论(0)
  • 2020-12-07 02:51

    Some thoughts:

    • Set a durable cookie. (Since FF is in kiosk mode, you should be safe from the users clearing it.)
    • Have that kiosk use a different URL (perhaps with a query string parameter).

    What I wouldn't do is work according to the machine's MAC address (which Gibson tells us is possible) or similar; too fragile when hardware gets fixed, etc.

    0 讨论(0)
  • 2020-12-07 02:56

    Try this.

    $something=$_SERVER['HTTP_USER_AGENT'];
    

    To uniquely identify user check $something matches your own.(which is on your php code). if yes then proceed access.

    0 讨论(0)
提交回复
热议问题