Back to blog
Web 6 min23 November 2026

Law 09-08 and Your Website: What Your Site Must Show to Comply with the CNDP

A contact form, a newsletter or an advertising pixel is enough for your website to process personal data. What Morocco's law 09-08 and the CNDP mean in practice, cookies included.

Smartphone showing a padlock icon on a desk, a symbol of data protection

As soon as your website has a contact form, a newsletter sign-up, a booking module, visitor analytics or an advertising pixel, it collects personal data. In Morocco, this processing is governed by law 09-08 on the protection of individuals with regard to the processing of personal data, enacted by dahir no. 1-09-15 of 18 February 2009, and supervised by the CNDP, the national commission for the control of personal data protection. Many Moroccan websites still ignore it. This article explains what the law changes in practice for a website. It is general information, not legal advice: for your specific situation, refer to the texts published on cndp.ma or to a legal professional.

What law 09-08 covers, in short

Personal data is any information that identifies a person, directly or indirectly: a name, a phone number, an email address, a passport number, but also an IP address or a cookie identifier. Processing is any operation on that data: collecting, storing, viewing, using, transmitting. The data controller is whoever decides why and how the data is used. For your website, that is your business, even if an agency built the site.

Data your website collects without you noticing

  • Forms for contact, quotes or call-backs: name, phone, email, message.
  • Bookings and orders: delivery address, travel dates, travellers' names, sometimes identity documents.
  • The newsletter: email addresses and open history.
  • Visitor analytics and advertising pixels (Meta, Google, TikTok) that track visitor behaviour.
  • Conversations started from the site, for example through a WhatsApp button or a chat widget.

Five obligations to reflect on your website

1. Declare, or request authorisation, before collecting

The law requires a prior declaration to the CNDP, or an authorisation request for certain more sensitive processing. For common processing, the CNDP publishes simplified declaration models that make the procedure lighter.

2. Inform people at the point of collection

Under each form, a short notice should state who collects the data, for what purpose, who receives it and how to exercise one's rights, with a link to a full privacy policy.

3. Let people exercise their rights

Anyone can ask to access their data, have it corrected, or object to its processing, especially for marketing. Provide a clear contact address and answer requests.

4. Secure the data

HTTPS, restricted access to the dashboard with strong passwords, backups, and deletion of data that is no longer needed. A form that sends requests to an inbox shared by the whole team is not good practice.

5. Control transfers abroad

Hosting outside Morocco or using foreign online tools (CRM, email marketing, analytics) means transferring data, which the law regulates. List the services your site uses and check the applicable conditions with the CNDP.

Cookies: the new rule from late 2025

On 28 November 2025, the CNDP adopted deliberation no. D-939-2025, which sets a simplified declaration model for the processing of data through cookies. Its principle is clear: before cookies are first placed on the visitor's device, the site owner must inform them of its identity, the purposes of the cookies and the categories of data collected, then obtain their consent. Sites that were already placing cookies must bring themselves into compliance. The same day, deliberation no. D-940-2025 set a similar model for managing newsletters.

In practice, that means a banner that makes accepting and refusing equally easy, analytics and advertising pixels that only load after acceptance, and a permanent link to change one's choices. That is how we set up brandora.ma, with a privacy policy reachable from every page.

Man signing a paper document with a pen
Privacy policy, legal notice, terms of sale: short texts, but they must be written carefully and kept up to date.

Legal notice and terms of sale

Beyond personal data, a professional website must make the business clearly identifiable: company name, address, trade register number, ICE (common company identifier), phone and email. If you sell online, law 31-08 on consumer protection also requires specific information before ordering: product characteristics, price, delivery costs and times, payment methods and withdrawal conditions. Gather them in terms of sale that are accessible before each order is confirmed.

Compliance checklist

  • A legal notice page with the company's full identity.
  • An up-to-date privacy policy, in French and Arabic if your site is bilingual.
  • An information notice under every form.
  • A cookie banner offering a real choice, with no pixel loaded before consent.
  • The whole site on HTTPS and a protected dashboard.
  • The necessary declarations filed with the CNDP.
  • Terms of sale if the site takes orders or bookings.

Further reading

Technical security is covered in our article on cybersecurity for small businesses in Morocco, and SSL certificates in hosting and domain names explained. Regulated professions will find a concrete case in confidentiality and security of a lawyer's website. If you are planning a new site, add these points to your requirements document, and if you sell online, read our guide to building an e-commerce website in Morocco.

Sources: law no. 09-08 and CNDP deliberations published on cndp.ma (consulted in November 2026).

FAQ

Is my brochure website with no shop covered by law 09-08?

Yes, as soon as it collects personal data: a simple contact form, a newsletter sign-up or analytics and advertising cookies are enough.

Does a Moroccan website need a cookie banner?

Since the CNDP deliberation of 28 November 2025 on cookies, visitors' consent must be obtained before the relevant cookies are first placed, after informing them of the purposes. A banner offering a real choice is the simplest way to do it.

Who files the CNDP declaration: the business or the web agency?

The business, because it decides why the data is collected. The agency can help by describing the forms, tools and hosting used.

What does a business risk if it ignores law 09-08?

The law provides for administrative and criminal penalties, including fines, and the CNDP can inspect websites. The official text and procedures are available on cndp.ma.

Want a website with the cookie banner, legal pages and security built in from day one? See our website creation service or ask us to review your current site.

Share this article
Newsletter

Never miss an article

Join our readers and get weekly insights on SEO, web design and digital marketing for the Moroccan market.

No spam. Unsubscribe anytime.