Safe Exam Browser quiz access rule

Quiz access rules ::: quizaccess_safeexambrowser
Maintained by Tim at Lone Pine Koala SanctuaryTim Hunt, Luca Bösch
This quiz access rule plugin provides Safe Exam Browser 2.0 integration for Moodle
Latest release:
1107 sites
31 fans
Current versions available: 4

Note! since Moodle 3.9 a better SEB integration is built into the standard Moodle release. You probably don't need this plugin any more.

This quiz access rule was created by Tim Hunt at the Open University. It provides integration for Safe Exam Browser 2.0 or later with Moodle. It can be used with versions 2.7 of Moodle, 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.

Note this plugin is not needed from Moodle 3.9 onwards any more. Its function is embedded in the default quizaccess_seb access rule. Version 'Release 1.4 for Moodle 3.4+ (20200727)' is the final release.


Screenshot #0


Tim at Lone Pine Koala Sanctuary
Tim Hunt (Lead maintainer)
Luca Bösch: Developer
Please login to view contributors details and/or to contact them

Comments RSS


  • 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;
  • 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.
  • 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
  • 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.
  • Wed, Apr 6, 2016, 7:06 AM
    Hi Tim,
    It works!
  • Thu, Apr 21, 2016, 6:55 PM
    How to uninstall safe exam browser?
  • Fri, Aug 26, 2016, 2:10 AM
    Hi Tim, I was using Admin -> Development -> Experimental -> Enable Safe Exam Browser but then discovered this plugin, which I installed, and then unchecked Admin -> Development -> Experimental -> Enable Safe Exam Browser. However, in Administration / Quiz administration / Edit settings / Extra restrictions on attempts, there is no longer the option to use Safe Exam Browser, just a javascript popup. Do I need to reactivate Admin -> Development -> Experimental -> Enable Safe Exam Browser? Thanks.
  • Tim at Lone Pine Koala Sanctuary
    Fri, Aug 26, 2016, 2:11 AM
    You don't need that experimental setting. You do need this plugin.
  • Fri, Aug 26, 2016, 2:34 AM
    I have the plugin installed but still can't see the option to use Safe Exam Browser in Administration / Quiz administration / Edit settings / Extra restrictions on attempts sad I'll post more in the Quiz thread for Moodle in English. Easier to post screenshots there.
  • Sat, Sep 3, 2016, 1:37 AM
    I have enabled https for logins in moodle, the rest of the site is http. This prevents the user from logging in with Safe Exam Browser though, as the configuration setting url is 'http'.
    Is there a workaround for this?
Please login to post comments