ProxySpace

AFRINIC · updated daily

Morocco IP ranges

78 IPv4 blocks with 12,274,176 addresses and 28 IPv6 prefixes, registered to Morocco, the 33rd largest IPv4 holding of 239 countries.

IPv4 addresses

12.3M

IPv4 blocks

78

IPv6 prefixes

28

Share of all IPv4

0.33%

Format

MA.txt

Largest networks in Morocco

Autonomous systems by the IPv4 addresses they announce inside these ranges.

NetworkASNIPv4 addresses
Itissalat Al-MAGHRIBAS67135,950,976
Office National des Postes et Telecommunications ONPT (Maroc Telecom) / IAMAS369032,410,752
MEDITELECOMAS369252,409,472
Wana CorporateAS368841,390,848
CNRST (Centre National pour la Recherche Scientifique et Technique)AS3098317,664
MTDSAS369419,216
HOSTOWEBAS377383,328
GloboTech CommunicationsAS366662,560
SKYLOGIC S.P.A.AS292862,560
NPONEAS3280552,048

ASN data: IP Geolocation by DB-IP (CC BY 4.0).

Largest IPv4 blocks

The biggest single block is 105.128.0.0/11.

BlockAddressesAllocated
105.128.0.0/112,097,1522011-06-02
196.64.0.0/112,097,1522016-01-08
105.64.0.0/121,048,5762014-01-27
160.160.0.0/121,048,5762014-11-10
196.112.0.0/121,048,5762016-01-21
102.48.0.0/13524,2882019-03-22
102.72.0.0/13524,2882018-09-28
102.96.0.0/13524,2882018-07-09
154.144.0.0/13524,2882017-04-28
41.140.0.0/14262,1442009-01-06
41.248.0.0/14262,1442006-02-02
45.216.0.0/14262,1442015-02-24
105.188.0.0/14262,1442014-04-29
160.176.0.0/14262,1442014-11-10
197.128.0.0/14262,1442010-11-11

Allocations per year

IPv4 addresses assigned to networks in Morocco each year, by registration date.

1996: 16,384 addresses. 1997: 0 addresses. 1998: 32,768 addresses. 1999: 0 addresses. 2000: 0 addresses. 2001: 32,768 addresses. 2002: 65,536 addresses. 2003: 0 addresses. 2004: 16,384 addresses. 2005: 135,168 addresses. 2006: 270,336 addresses. 2007: 16,384 addresses. 2008: 32,768 addresses. 2009: 369,664 addresses. 2010: 270,336 addresses. 2011: 2,197,504 addresses. 2012: 327,936 addresses. 2013: 65,536 addresses. 2014: 2,623,488 addresses. 2015: 271,616 addresses. 2016: 3,153,920 addresses. 3.2M 2017: 786,432 addresses. 2018: 1,050,368 addresses. 2019: 526,848 addresses. 2020: 2,304 addresses. 2021: 512 addresses. 2022: 1,280 addresses. 2023: 2,560 addresses. 2024: 3,072 addresses. 2025: 1,792 addresses. 2026: 512 addresses. 1996 2026

Most recent allocations

BlockAddressesAllocated
102.202.54.0/242562026-06-09
102.203.136.0/242562026-01-07
102.204.214.0/242562025-10-01
102.204.212.0/235122025-09-15
102.205.4.0/221,0242025-08-25
102.207.32.0/221,0242024-11-27
102.208.100.0/221,0242024-07-24
102.208.146.0/235122024-07-12
196.49.104.0/242562024-06-13
196.60.126.0/242562024-06-13

Use the list

$curl -s https://proxyspace.pro/Ranges/MA.txt -o MA.txt
# Block Morocco with ipset + iptables
ipset create ma4 hash:net
while read net; do ipset add ma4 "$net"; done < MA.txt
iptables -I INPUT -m set --match-set ma4 src -j DROP

# Is an address in Morocco? (Python)
import ipaddress
nets = [ipaddress.ip_network(l) for l in open("MA.txt") if l.strip()]
print(any(ipaddress.ip_address("41.77.112.1") in n for n in nets))

Morocco IP ranges: questions

How many IP addresses does Morocco have?

Morocco holds 12,274,176 IPv4 addresses in 78 blocks and 28 IPv6 prefixes, the 33rd largest IPv4 holding of 239 countries (0.33% of all allocated IPv4). Compare it with other countries on the IP ranges by country page.

Which networks use the most Morocco IP addresses?

Itissalat Al-MAGHRIB (AS6713, 6M addresses), Office National des Postes et Telecommunications ONPT (Maroc Telecom) / IAM (AS36903, 2.4M addresses) and MEDITELECOM (AS36925, 2.4M addresses). Look up any single address with the IP lookup tool.

How do I block all Morocco IP addresses?

Download the list above in the format of your firewall: iptables/ipset, nginx, Apache, ufw or MikroTik. Turn on "aggregate" to merge adjacent blocks into fewer rules. The raw list is at /Ranges/MA.txt, one CIDR per line. To inspect a single block use the CIDR calculator.

Who assigns IP addresses in Morocco?

AFRINIC, the regional internet registry for Africa. ProxySpace downloads its delegation file every day; the most recent Morocco allocation in it is 2026-06-09.

Are there free proxies in Morocco?

Not in the current lists. They change every 20 minutes; the proxies by country page shows which countries have proxies right now.