Home › Quizzes › Platforms & LMS › Moodle quiz IP restriction guide

Set a Moodle quiz IP restriction so only campus networks can sit it

DeckOwl does not touch your Moodle server, but it can turn your lecture notes into the quiz you then lock down with an IP rule.

Create quizzes nowFree · No credit card required

Free · First set needs no signup · Creates quizzes in seconds

How a Moodle quiz IP restriction works

Most instructors reach for a Moodle quiz IP restriction when attempts should only start from a campus lab, a testing center or a known office network. The check runs when a student opens the quiz, so the address the server sees is the one that counts.

  • Single addresses, comma-separated lists and CIDR subnets are the usual formats
  • Proxies and VPNs can change the address Moodle sees, so test through them
  • Preview the quiz from a device outside the range before the exam date
  • Keep a copy of the question bank in case the quiz needs rebuilding
Example Moodle quiz IP restriction questions
In Moodle, where do you set the Required IP address for a quiz?Under 'Extra restrictions on attempts' in the quiz settings. That section holds attempt-level limits such as passwords and IP addresses.
Can a Moodle quiz IP restriction accept a subnet instead of one address?Yes, a CIDR subnet such as 10.0.0.0/8 can be entered. Moodle checks the student's address against the listed networks.
Why might a student on mobile data be blocked by an IP restriction?Their phone uses an address outside the campus range. The check uses the address the server receives, not the student's location.
Why can a student behind a VPN fail an IP restriction check?The VPN replaces the student's own address with the provider's. Add the VPN's address range to the allowed list if policy permits it.
Does an IP restriction prove who is taking a Moodle quiz?No, it only limits where attempts start. Anyone on an allowed network can still log in with another person's account.
Generate the full set

Questions from your own notes

Upload a PDF, slide deck, DOCX or text file and get multiple-choice, true/false or open questions with explanations.

Moodle XML export

Export the finished question set as Moodle XML on the Pro plan, ready to import into the course quiz.

Free to start

The free plan gives 3 generations per month in the browser and needs no credit card. Students get 40% off with a school email.

How it works

Open the quiz settings

Add the quiz to your Moodle course and open its settings page.

Enter the allowed address

Under 'Extra restrictions on attempts', put the allowed IP address or subnet in the Required IP address field.

Test from both sides

Start a preview from one allowed device and one blocked device to confirm the rule works as expected.

DeckOwl does not change your Moodle server or its settings. It handles the content side: upload lecture notes, a PDF or slides and it generates multiple-choice, true/false or open questions with explanations, then exports them as Moodle XML on the Pro plan so you can import them into a quiz you have already set up.

An IP rule limits where attempts begin. It does not confirm who is typing, and students on a shared network can still sign in with someone else's login, so pair it with other exam controls when the stakes are high.

Explore related topics

Frequently asked questions

How do I test a Moodle quiz IP restriction before an exam?

Start a preview from a device inside the allowed range and another from outside it. The first should open the quiz and the second should be refused.

What address formats work in the Required IP address field?

Single IP addresses, comma-separated lists and CIDR subnets such as 192.168.1.0/24 are the common formats. Check your Moodle version's help text for the exact syntax.

Can DeckOwl export quizzes straight to Moodle?

Yes, Moodle XML export is included in the Pro plan at $14.99 per month. Plus and the free plan do not include Moodle XML.

Do I need a credit card to try DeckOwl?

No, you can start on the free plan with 3 generations per month and no card. Exports such as Moodle XML require a paid plan.

Generate free quizzes

Keep exploring the topic

Review the main ideas visually or practice recalling them.