User can only login through their own computer in php

I have developed one site where students can log in and view an online class. now my client wants the user to only be able to view the class if they log in through their own computer, or on the computer where they first logged in, as well as on the pc they are approved for to view the class.

if the username and password are also correct, but the machine is different, the user cannot login and shows an error to login from their computer.

I read about ip and cookie but in both cases my requirement is not right. reason ip can be changed and cookie can be removed from system.

I am also trying to do this by MAC address, but I don't get the user's MAC address in the php script.

I hope you all understand what I mean. I have been finding an answer for this from 3 days, still not understanding it.

if anyone has an idea how to do this. answer me as soon as possible.

+3


source to share


1 answer


Based on what you said, "there are only registered students who can only view the class, if students share their password with others, everyone can view the class, so the client wants this user to only view it from their own computer."

You really can't prevent this (?). If students call another student older and show the class, how do you prevent this?



One way to make sharing passwords more difficult is to provide students with a one-time password that has 100-300 passwords and keys. Whenever a student logs in; a regular username / password pair, and after that one of the one-time passwords (give me the password number 233 and the user gives this password from the list). This will not prevent users from logging into each other's account if they are willing to share separate time passwords.

Bit offtopic, I think you cannot reinvent a system where information cannot be shared if it is online ... it downloads to your computer when you look at it and there you go - you have a copy.

+2


source







All Articles