authentication - How do we get the macid or any other unique identifier in php for the login system -
i have build login in website bind system. e.g. user can login through machine has registered.
i not able mac id or other unique identifier through php can bind login. have hosted website on shared hosting, cannot install new library. standard libraries available.
let me know if there best possible ways same.
there no unique id of machine, @ all. mac addresses don't transition network boundaries, ip addresses not unique , volatile. beyond have in http headers, not unique or permanent either.
the best can set non-expiring cookie on machine unique id , depend on that; i.e. make own id. that'll create problems when user switches browsers or machines or cleans cookie storage though, make sure have procedure in place case. cookies may hijacked, prepare procedure case , transact on ssl secured connections minimize likelihood of occurring.
in short: depending on physical machine of user problematic on web, since web explicitly designed client-agnostic. machine ids cannot depended upon security. registering machine using unique cookie can useful part in strengthening traditional username/password security, it's not replacement.
the best typically base security on traditional usernames/passwords (+ second factor authentication if possible), , use unique cookie additional tool. example, every time user logs in unknown machine, require email/sms feedback loop "register" machine.
Comments
Post a Comment