Morocco has 12,274,176 IPv4 addresses allocated by AFRINIC (Africa), which ranks it number 33 of 242 countries and territories. 39 autonomous systems (networks) are registered there, of which 30 currently announce IP ranges on the internet.
Biggest networks in Morocco
| # | AS | Network | IPv4 addresses | IPv6 |
|---|---|---|---|---|
| 1 | AS6713 | Itissalat Al-MAGHRIB | 5,900,288 | Yes |
| 2 | AS36903 | Office National des Postes et Telecommunications ONPT (Maroc Telecom) / IAM | 2,486,528 | Yes |
| 3 | AS36925 | MEDITELECOM | 2,409,472 | Yes |
| 4 | AS36884 | Wana Corporate | 1,390,848 | Yes |
| 5 | AS30983 | CNRST (Centre National pour la Recherche Scientifique et Technique) | 17,664 | Yes |
| 6 | AS36941 | MTDS | 9,216 | Yes |
| 7 | AS328867 | Corebach Backbone SARL | 5,120 | — |
| 8 | AS37738 | HOSTOWEB | 3,328 | Yes |
| 9 | AS328055 | NPONE | 2,048 | — |
| 10 | AS328066 | MEDAFRICA SYSTEMS | 2,048 | — |
| 11 | AS327989 | Genious Communications | 1,536 | — |
| 12 | AS328493 | Societe d'Amenagement et de Developpement Vert (SADV) | 1,024 | — |
| 13 | AS328577 | Enterprise Services CDG | 1,024 | — |
| 14 | AS329605 | ATTIJARIWAFABANK | 1,024 | — |
| 15 | AS329461 | Maroc Datacenter MDC | 1,024 | Yes |
| 16 | AS328709 | Universite Mohammed VI POLYTECHNIQUE - UM6P | 1,024 | — |
| 17 | AS328272 | CIE NATIONALE ROYAL AIR MAROC | 768 | Yes |
| 18 | AS201129 | YASSINE BOU-ELBARAKA | 512 | — |
| 19 | AS328541 | Direction Générale des Impôts - Ministere de l'economie et des finances - MA | 512 | Yes |
| 20 | AS329612 | MTDS | 512 | — |
| 21 | AS328280 | L'Agence Nationale de Réglementation des Télécommunications (ANRT) | 256 | Yes |
| 22 | AS329691 | AFRIQUIA S.M.D.C. | 256 | — |
| 23 | AS329628 | AL BARID BANK | 256 | Yes |
| 24 | AS329280 | Centre Royal de Télédétection Spatiale | 256 | — |
| 25 | AS328960 | Ministry of Foreign Affairs African Cooperation and Moroccan Expatriates | 256 | — |
| 26 | AS218415 | CLOUDER | 256 | Yes |
| 27 | AS328268 | INSTITUT NATIONAL DES POSTES ET TELECOMMUNICATIONS - INPT | 256 | Yes |
| 28 | AS36956 | Office National des Postes et Telecommunications ONPT (Maroc Telecom) / IAM | 256 | — |
| 29 | AS327917 | Direction Generale de la Securite des Systemes d'Information- DGSSI | 256 | Yes |
| 30 | AS329442 | L'Agence Nationale de Réglementation des Télécommunications (ANRT) | 256 | Yes |
How to block or allow visitors from Morocco
- Cloudflare — WAF custom rule with
(ip.src.country eq "MA"). - Website or server — use a geolocation database or a geo-blocking plugin with the country code MA.
- Keep in mind — VPN users from other countries can appear to come from Morocco, and local users with a VPN can appear elsewhere.
Other countries in the AFRINIC region
- 🇿🇦 South Africa
- 🇪🇬 Egypt
- 🇹🇳 Tunisia
- 🇰🇪 Kenya
- 🇩🇿 Algeria
- 🇲🇺 Mauritius
- 🇳🇬 Nigeria
- 🇬🇭 Ghana
- 🇸🇩 Sudan
- 🇨🇮 Côte d'Ivoire
- 🇿🇲 Zambia
- 🇺🇬 Uganda
Frequently asked questions
How many IP addresses does Morocco have?
Morocco has 12,274,176 IPv4 addresses allocated by its registry, and 28 IPv6 allocations.
Which registry manages IP addresses in Morocco?
AFRINIC (Africa) hands out IP addresses and AS numbers in Morocco.
What is the biggest network in Morocco?
By announced IPv4 addresses, the biggest network registered in Morocco is AS6713 (Itissalat Al-MAGHRIB).
How can I check if an IP address is from Morocco?
Type the address in our IP lookup. It shows the country, region, city and network of any IPv4 or IPv6 address.