Moodle - Restricting Quizzes to Certain Networks
This document explains how to restrict quizzes in Moodle to certain locations via their IP addresses.
First you will need to obtain the IP address(es) that you want to restrict the Moodle quiz to. You can include as many addresses as you want as long as you separate each address with a comma.
Start by clicking on Edit Settings under "Quiz administration" in the Administration block.
Next, go to the "Extra Restrictions on attempts".
Click on Show more. Then enter the IP addresses that you would like to restrict the quiz to, separated by a comma, into the the "Require network address" box.