Hi @bhestiyas,
I think that particular issue is perhaps more of a policy/procedure one than a technology one (though I completely understand the in-person vs online aspect). The institution I work for has a policy and procedure around this issue. Basically, unless there is some kind of emergency situation, we will not let anyone other than support personnel, students, the instructor of record, or someone the instructor of record requests have to access a course. Since this is policy, it only works so long as you generally trust your administration/support team to carry out the policy, but we haven't had any major issues here (if anything, people are usually upset that we have barriers to accessing a course). Maybe your school/institution could implement something similar.
-Chris