Locking down a quiz to require Safe Exam Browser to be used

Document created by Brandon Belew on Oct 16, 2015Last modified by awilliams on Oct 16, 2015
Version 2Show Document
  • View in full screen mode

I had a teacher request that tests in her class not be available in Canvas unless students were using Safe Exam Browser.   SEB is a free open source lock down browser similar to Respondus, but free!

 

So I slapped together a quick little snippet of javascript to make it happen.    There isn't much to it, and it could be bypassed,  but for quick and easy it works.  If someone wants to expand upon it please feel free.

 

Instructions:

Place the following code into your custom javascript file in canvas:

 

if (document.getElementById('quiz-instructions').innerHTML.indexOf("[SEB]") != -1) 
  { 
  if ( navigator.userAgent.indexOf('SEB') == -1)
  {
  document.getElementById('submit_quiz_form').style.display = "none";
  alert('You must use the Safe Exam Browser to take this quiz');
  }
  }

 

In your quiz instructions place the following:  [SEB]

 

 

Putting [SEB] into quiz instructions will trigger the script and flash up an alert that the test must be taken in SEB, the quiz itself won't show until in SEB.

Attachments

    Outcomes