Hosting Moodle in Saudi Arabia: PDPL, NCA and Data Residency

Hosting Moodle in Saudi Arabia: PDPL, NCA and Data Residency

Saudi buyers ask where their Moodle will be hosted long before they ask about themes or plugins. The answer is not just a city on a map. Hosting Moodle in Saudi Arabia touches the Personal Data Protection Law and its transfer regulation, the National Cybersecurity Authority's controls if you are a government or critical-infrastructure entity, and a set of quieter data flows that leave the country even when the servers do not. Here is what the official texts say, which cloud regions exist in the Kingdom, and how to design, back up and log a Moodle site your legal and security teams can sign off.

What the PDPL says about data leaving the Kingdom

Saudi Arabia's Personal Data Protection Law (Royal Decree M/19 dated 9/2/1443H, later amended) and its regulations are published on SDAIA's personal data protection platform. A Moodle site is full of personal data: names, national ID or employee numbers in profile fields, grades, quiz attempts, forum posts and activity logs. So the hosting decision is, first of all, a decision about whether that data is transferred or disclosed outside the Kingdom. This is not legal advice; it is a map of the texts so you can ask your legal team the right questions.

  • Article 29: purposes and conditions

    Article 29 of the Law allows a controller to transfer or disclose personal data outside the Kingdom for listed purposes, such as an obligation under an agreement the Kingdom is party to, serving the Kingdom's interests, an obligation to the data subject, or other purposes set by the regulations. The transfer must not prejudice national security or vital interests, the destination must offer protection at least equivalent to the Law, and the data must be limited to the minimum needed.

  • The transfer regulation

    The Regulation on Personal Data Transfer Outside the Kingdom (version 2.0, August 2024) says the competent authority will publish a list of countries and organisations with an adequate level of protection and review it every four years or as necessary. For exempted cases it lists appropriate safeguards: standard contractual clauses, binding common rules for multinational groups, and a certificate of accreditation.

  • Risk assessment and onward transfers

    The regulation requires a risk assessment before transfers made under those exemptions, and before continuous or large-scale transfers of sensitive data. It also applies the Law to onward transfers of data already sent abroad, which matters if a foreign hosting or support provider uses its own subcontractors.

  • The question to put to counsel

    The texts cover transfer and disclosure, not only where the disk sits. Ask your legal team how remote administration, support sessions or reporting by a team outside the Kingdom should be treated for your data, and document the answer before you choose a vendor.

NCA controls: who the ECC and CCC apply to

The National Cybersecurity Authority's Essential Cybersecurity Controls (ECC-2:2024) apply to government agencies, their affiliated companies and entities inside and outside the Kingdom, and private entities that own, operate or host critical national infrastructure. Other organisations are encouraged, not required, to use them. The Cloud Cybersecurity Controls (CCC-2:2024) extend the ECC for cloud service providers and tenants in that same scope. Separately, the PDPL Implementing Regulation asks controllers to adopt NCA controls where they apply to them, and recognised cybersecurity best practices where they do not.

  • Cloud and hosting controls in the ECC

    Subdomain 4-2 requires, at minimum, that providers protect your data according to its classification level and return it in a usable format when the service ends, and that your environment, especially virtual servers, is separated from other customers'.

  • Where the localisation rule went

    Earlier ECC text included a sub-control requiring information hosting and storage inside the Kingdom. The 2024 edition deletes it and explains that data-localisation controls moved to the National Data Management Office at SDAIA, which entities must consult on localisation before acting. The NCA's CCC page likewise says the controls were updated for changes in localisation requirements.

  • Levels follow data classification

    The CCC document defines four levels mapped to data classified as top secret, secret, confidential and public. Your Moodle's classification, set by your entity, decides which provider and tenant controls apply.

  • Tenant duties you will inherit

    Among the tenant controls: an exit strategy that ensures secure disposal of data when the contract ends, secure means to export data and virtual infrastructure, encryption of data moving into and out of the cloud, and collection of login and security event logs for your cloud assets.

Cloud options for hosting Moodle in Saudi Arabia

If your requirements point to in-Kingdom hosting, there are now several hyperscale options alongside local providers and your own data centre. Availability changes, so confirm each one with the provider on the day you sign.

  • Oracle Cloud Infrastructure

    Oracle's region list shows two Saudi regions, Saudi Arabia West (Jeddah, me-jeddah-1) and Saudi Arabia Central (Riyadh, me-riyadh-1), each with one availability domain. Two cities make an in-Kingdom disaster-recovery pair possible.

  • Google Cloud, Dammam

    Google's Dammam region access page says the region code is me-central2 and that customers with a Saudi billing address buy through CNTXT, its exclusive reseller there. The same page says the Communications, Space and Technology Commission granted a Class C licence for the region after an assessment based on the NCA's ECC and CCC.

  • Microsoft Azure, Saudi Arabia East

    Microsoft announced on 31 August 2026 that its Saudi Arabia East region, in the Eastern Province with three availability zones, would be available to customers in November 2026 for eligible workloads. Check which services you need are live there.

  • Amazon Web Services

    AWS announced in March 2024 a Saudi infrastructure region planned for 2026 with three availability zones at launch. Confirm its status and service list before planning on it.

  • A region is necessary, not sufficient

    Ask every provider which licence and NCA assessment it holds, which of your services run in-region, where keys and backups live, and from which countries its support staff can reach your environment.

A reference architecture for an in-Kingdom Moodle

Moodle has three parts to place: the code, the database and the data directory (moodledata) where uploaded files live. All three, plus their backups, should sit in the region you approved. For release choice and performance sizing, see our article on Moodle hosting and updates; below is what changes when residency is a requirement.

  • Web and database tiers

    Run at least two web nodes behind a load balancer, a managed or replicated database, and shared file storage for moodledata, spread across availability zones where the region offers them.

  • Keys and encryption

    Encrypt disks, database and backups with keys held in an in-region key service or your own hardware, and restrict who can use them.

  • CDN and edge caching

    A global CDN may cache course files at edge locations abroad. Either keep it to public theme assets or confirm the provider's edge locations and settings with your security team.

  • Administrative access

    Put server and Moodle admin access behind a VPN or bastion host with multi-factor authentication, which the ECC requires for remote access and privileged accounts, and log every session.

Where Moodle data quietly leaves the country

Servers in Riyadh do not guarantee that data stays in the Kingdom. Map every integration before go-live; these are the usual leaks.

  • Mobile app push notifications

    In Moodle's source, the default push server for the Moodle app is messages.moodle.net, and the plugin's privacy description says message data is sent to an external site for delivery. Moodle offers end-to-end encryption of notifications (Android 8, iOS 13 and Moodle app 4.2 or later); a branded app can use a different push server.

  • AI features

    Moodle 4.5 ships AI provider plugins for OpenAI and Azure AI. Any text a teacher sends for generation or summarising goes to that provider's endpoint, so its region matters.

  • Email, video and live classes

    Emails contain names and course details; video and virtual classroom services hold recordings with faces and voices. Check where each provider processes and stores data.

  • Plugins and support

    Moodle's Data privacy tool includes a plugin privacy registry listing what each installed plugin declares about personal data, including data sent to external systems. Review it, and agree in writing how vendor support reaches production.

Backups, logging and retention

Residency reviews usually fail on the unglamorous parts: where backups go, how long logs live and who can delete them. Write these down as numbers.

  • Backups

    Moodle's automated course backups help restore single courses but are not a full site backup; you also need the database, moodledata and code. Keep copies in a second in-Kingdom location, encrypt them, and test a restore. For in-scope entities, ECC backup controls require coverage of critical assets, quick recovery and periodic testing.

  • Moodle logs versus security logs

    Moodle's standard log store has a 'Keep logs for' setting that defaults to never deleting, with options such as 365 or 1,000 days. Server, firewall and admin-access logs are separate. The ECC requires in-scope entities to retain cybersecurity event logs for at least 12 months and monitor them continuously, so forward them to your SIEM.

  • Retention of learner data

    Moodle's data registry lets you set purposes and retention periods by context; expired data is flagged for deletion pending admin approval. Agree the periods with your legal team rather than keeping everything forever.

  • Breach readiness

    The PDPL Implementing Regulation requires the controller to notify the competent authority within 72 hours of becoming aware of a breach. That is only realistic if your hosting contract says who detects an incident and how fast you are told.

Planning a Moodle deployment in the Kingdom

Since 2013, N.I.T has built and run Moodle LMS platforms for clients in Egypt and the Gulf, including government projects, deployed either on managed cloud hosting or on the client's own infrastructure. For a Saudi deployment we start with a data-flow map of your platform: every integration, where it processes data and who has admin access, so your legal and security teams can decide with facts. If you are also preparing a tender, our LMS RFP template and NELC checklist cover the rest of the requirements. Contact us or request a quote with your expected users and data classification.

Frequently asked questions

  • Does the PDPL ban hosting Moodle outside Saudi Arabia?

    The Law does not read as a blanket ban; Article 29 and the transfer regulation set purposes, conditions, safeguards and risk assessments for transfers abroad. Other rules, such as data-localisation guidance from the National Data Management Office or your sector regulator, may be stricter. Your legal team decides.

  • Does the ECC still require hosting inside the Kingdom?

    ECC-2:2024 deleted the in-Kingdom hosting sub-control and points entities to the National Data Management Office at SDAIA for localisation. In-scope entities still have to meet the cloud and hosting controls.

  • Is a Saudi cloud region enough for compliance?

    No. It solves location, not access, keys, backups, logging or third-party integrations, where most findings come from.

  • Can a vendor outside the Kingdom support our Moodle?

    That depends on how your counsel classifies remote access to your data. Many arrangements limit vendor access to staging, use masked data, or route production changes through an in-Kingdom team.

  • How long should we keep Moodle logs?

    Set it by policy. If you are in ECC scope, security event logs need at least 12 months; Moodle's activity log can be set to match, and should be included in your retention schedule.

Need a Moodle platform or eCommerce app?

We'll send you a detailed proposal within 24 hours