Your Moodle version

Quiz access rules: Safe Exam Browser quiz access rule

Maintained by Tim at Lone Pine Koala Sanctuary Tim Hunt
This quiz access rule plugin provides Safe Exam Browser 2.0 integration for Moodle.
Moodle 2.3, 2.4, 2.5, 2.6, 2.7

This quiz access rule was created by Tim Hunt at the Open University. It provides Safe Exam Browser 2.0 integration for Moodle. It can be used with versions 2.3.7 of Moodle, or later. (For Moodle 2.4, you should be using 2.4.4 or later.)

If you install this plugin, there is a new option 'Allowed browser exam keys' on the quiz settings form where you can enter valid keys for version of SEB that should be allowed to attempt the quiz. There is also a new capability 'Not required to use Safe Exam Browser'. Users with that capability (by default teachers and above) are exempt from the secure browser check.


Tim at Lone Pine Koala Sanctuary
Tim Hunt (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Aditya Dubay
    Thu, Mar 13, 2014, 6:54 PM
    It says "Coding error detected, it must be fixed by a programmer: Trying to reference an unknown block region side-post" sad
  • Picture of Aditya Dubay
    Thu, Mar 13, 2014, 7:05 PM
    I am using Moodle 2.5.4
  • Picture of Aditya Dubay
    Thu, Mar 13, 2014, 7:55 PM
    Also using Essential theme
  • Picture of David North
    Thu, Aug 14, 2014, 6:00 PM
    Hi Tim, is there a way to set up this plugin without having to input the SEB keys but the quiz still requires SEB to access it (any SEB not just the ones with the keys in the database). Because the way it is currently set up means that a moodle admin needs to set up every SEB on all the students computers in order to enter each specific key into the settings, this is not very useful for geographically dispersed students. Is there a way that I can adjust the plugin code to achieve this? I have a little bit of plugin development experience.
  • Picture of avi levi
    Mon, Sep 22, 2014, 4:29 PM
    Hi all
    I am using moodle 2.6 an installed both the moodle extention and the seb itself.
    the problem is that when i run the quiz i get the following message : This quiz has been configured so that students may only attempt it using the Safe Exam Browser.

    You must use an approved version of Safe Exam Browser to attempt this quiz.
    What do i do wrong???
  • Tim at Lone Pine Koala Sanctuary
    Wed, Sep 24, 2014, 10:48 PM
    avi is basically asking the same thing as David, I think. (And I never answered David, sorry.)

    Just to be clear, the documentation is here: and you need to understand what 'Allowed browser keys' are.

    David, if you want to relax the security to allow any version of SEB (or anyone who can customise their browser to pretend to be SEB) then you need to change
    public static function check_access in mod/quiz/accessrule/safeexambrowser/rule.php

    Change the line return self::check_keys(...); to just return true;
  • Picture of Eric Romero Martínez
    Wed, Nov 12, 2014, 3:13 AM
    Hi Tim
    first, thanks so much for the plugin, SEB is a great tool. I have a Moodle 2.7 and install the SEB plugin but in the configuration of "Keys allowed" i dont find that key, you say that it's appear in one screen in SEB's installation of version 2.X, i install SEb 2.X but i don't find it and how to configurate the SEB for work with Moodle, i read the manual installation and configuration but dont understand sad
    Can you help me for this? If you helpme I contribute with a spanish traslate for this plugin (Im from Mexico) smile
  • Tim at Lone Pine Koala Sanctuary
    Wed, Nov 12, 2014, 3:51 AM
    The key come from this screen when you configure SEB: (That is the Mac UI, but it is similar for Windows.)

    The exact value of the key depends on the configuration you have set. This is so that Moodle can verify that your students are using the version of SEB you created, not a version they created that lets them use Google.
  • Tim at Lone Pine Koala Sanctuary
    Wed, Dec 16, 2015, 12:59 AM
    The code of this plugin is perfectly fine in Moodle 3.0. But, unfortunately, while I was testing this, I found (and fixed) MDL-52523, which is a regression in Moodle 3.0 relating to backup and restore of all types of subplugins. So, probably best to wait until that is fixed.
  • Tim at Lone Pine Koala Sanctuary
    Wed, Jan 27, 2016, 6:56 PM
    This plugin is compatible with Moodle 3.0, but you must be using Moodle 3.0.2 or later, otherwise you will hit problems with backup and restore.
  • Picture of ibrahim alameri
    Thu, Mar 3, 2016, 2:33 AM
    Hello Dear friends ,

    how could i upload many students at once and make exam for 40 students as example and all result for their exam will save with result where ( every student have different result ). Thank you
  • Picture of Kees Koopman
    Sat, Mar 26, 2016, 6:56 PM

    I want to use SafeExamBrowser. In the Quiz I can check "use Safe Exam Browser". So far, so good.

    But I read in the documentation:

    Use the Browser Exam Key authentication in Moodle for the connecting SEB version and its settings by installing the quiz access rule plugin in Moodle. In addition you will have to copy the Browser Exam Key hash code string into the quiz settings (Administration / Quiz administration / Edit settings / Extra restrictions on attempts / Allowed browser keys).

    I can not find the field where I can put in the hash code string.
    What's going wrong?

    Regards, Kees
  • Tim at Lone Pine Koala Sanctuary
    Tue, Apr 5, 2016, 2:39 AM
    Have you installed this plugin, and are you using it?

    There was an old SEB integration built into Moodle, available under Admin -> Development -> Experimental -> Enable Safe Exam Browser integration. That is something different, and should no longer be used.
  • Picture of Kees Koopman
    Wed, Apr 6, 2016, 7:06 AM
    Hi Tim,
    It works!
  • Picture of Ger Tielemans
    Thu, Apr 21, 2016, 6:55 PM
    How to uninstall safe exam browser?
1 2
Please login to post comments