Walang capability ang browser na makapag-manipulate ng local files / programs mo. Limited lang ang kaya nya para na din sa security ng client PCs against rogue / malicious websites. Isipin mo na lang kung ang facebook ay biglang mag-disable ng mga desktop applications ng mga users nya, isipin mo kung gaano kadami ang affected.
What you can do is:
Option 1: to detect how many times a user had changed focus (out from your browser or tab, to other application), and once changed, obscure the question and answer panel. (.on( "focusout", handler) ng jQuery)
Option 2: you could disable the copy function, OR count how many times he used the copy function (more of this later).
Think of it like this:
- User is taking your exam
Scenario A (alam nya ang sagot):
- User won't remove his eyes on the question and the available options
- Kung medyo nahirapan sya, babasahin nya mabuti ang question and options
- User would then select sa mga available answers
Scenario B (hindi nya alam ang sagot):
- User tries to analyze the question (ie. What country has the largest population? What is the sum of the numbers from 1 to 50?)
- Kung hindi nya alam ang sagot, he will try to copy the question, then search sa internet di ba? You may do Option 2, disable copy function or count / tag him that he used the copy function for that particular question.
- Or sa case ng math question dun sa example ko, he will try to add numbers 1 to 50, so he will click sa calculator app sa pc, that event will trigger the focusout event. In a typical scenario, hindi ka maglilipat ng tab / window / view lalo't nage-exam ka. Once triggered you focusout event, icover mo yung question and answer, para mas mahirapan sya i-recall kung ano yung content nung item na un. Since hindi nya ma-recall yung content, babalik sya sa Q&A mo (focusin), then babalik sya sa calculator (focusout), so dadami ang counter ng pagfocus out, you will have a suspected cheating for that particular item.
Kung on-site ang exam, do the necessary preventions. Remove external connections to the internet, para hindi sila makapag-google ng answers.