VPS in Morocco: a server in Casablanca or in Spain across the strait
Morocco is separated from Europe by fourteen kilometres of the Strait of Gibraltar, and that determines almost everything about local hosting. Submarine lines connect the country with Spain, Portugal and France, so Madrid or Marseille is closer to Casablanca than most African capitals. For a project owner the question is: do you need a server in the country itself, or will a European facility twenty milliseconds away do the job just as well and cheaper?
What exists inside the country
Data centres are concentrated around Casablanca and Rabat, and in recent years large facilities have also been built outside the capital region; the country positions itself as a digital hub between Europe and West Africa. There are more local hosts in the selection than in many small countries, and they have their own traits: a website in French or Arabic, prices in dirhams, support during Casablanca business hours. The rest of the table consists of international providers for whom Morocco is one of many countries; with such plans, always check the actual facility using the test IP.
Inside the country traffic between carriers is exchanged in Casablanca, but the telecoms market is held by a few large operators, and the route from a subscriber of one of them to a server in another's network is sometimes noticeably longer than expected. If ping to a specific mobile operator matters for your project, ask the host who it has direct connections with and test the latency from a phone on that operator.
Who should take a server in Morocco
- A Moroccan audience. A store, media, a booking service, an app with mobile traffic: a local server gives the lowest latency to the country's home and mobile carriers.
- Companies handling Moroccan personal data: banks, insurers, call centres, healthcare. For them a facility in the country simplifies dealings with the regulator (more below).
- French and Spanish companies with an office in Morocco that need a corporate network node and backups close to local staff.
- Testing local search results, ads and how a site opens from a Moroccan IP.
If the audience is mixed (the Maghreb, France, Spain), it is more honest to look at VPS in Spain or in France: Madrid is usually 20–35 ms from Casablanca, Paris and Marseille 30–50 ms, and the choice of plans there is orders of magnitude larger. For the point closest to the strait, compare Madrid separately.
From Moscow, traffic to Casablanca goes through Western Europe and usually takes 80–120 ms; from the US East Coast expect around 100–130 ms. For administration and websites this is fine; for voice calls over long distances it is already noticeable.
Law 09-08 and transfers abroad
The processing of personal data in Morocco is governed by Law 09-08, supervised by the national commission CNDP. A distinctive feature of the law is control over cross-border transfers: Moroccans' data may be sent to a country without a recognised adequate level of protection only with CNDP authorisation or under exceptions explicitly listed in the law. In addition, many types of processing require prior notification to or authorisation from the commission. In practice this means a Moroccan company's customer database on a server in the country is the simplest option, while a copy at a European facility requires the transfer to be formalised. This concerns the project owner, not the host, but ask the host in advance where backups are physically stored. Many Moroccan companies keep some systems in France or Spain; this is common practice if the transfer is formalised through the CNDP.
What to check before renting
- Port and traffic. Local plans may have a 100 Mbit/s link with a traffic cap, European ones a gigabit without a cap. For video and downloads this matters more than the number of cores.
- Invoice and details. A Moroccan company needs an invoice with its ICE identifier and VAT; foreigners are usually invoiced without them, so check before paying if you need accounting documents.
- Support language. Local hosts reply in French and Arabic; English is not available everywhere.
- IP geolocation. If you need a Moroccan address specifically, check the test IP in several databases: with international providers the subnet may be registered to France or the US.
Payment
The hosts in the selection do not accept Russian Mir cards or SBP. The main method is an international card, and some plans offer PayPal, bank transfer for companies or cryptocurrency; the "Payment" column shows this for each row. Prices in dirhams and euros are converted at the current exchange rate.