The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've been with Frontenac Schools for 5+ years now as the Technology Director. I am also occasionally a web developer with mostly python using the Django framework, but occasionally also with PHP.
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in