Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Community Contributor
8 10 7,004

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.


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.