Flag of Morocco during the rule of the Alaouite dynasty (17-20).
Own work by uploader - 

EL, Noble Timothy Myers- (30 December 2004)    (in English)   The Huevolution of Sacred Muur Science Past and Present: A Theoretical Compilation, Author House  ISBN:  978-1-4184-6949-8. : "Interesting enough 1912 was the year the green 5-pointed star was put in the center of the all red Moroccan flag".
Minahan, James (2010)    (in English)   The Complete Guide to National Symbols and Emblems, Greenwood Press, pp. 617  ISBN:  978-0-313-34500-5. : "The flag of Morocco before 1915 was a plain red field".
(in English) (1907)  Railway Conductors' Monthly, pp. 631  : "In nation's index the red flag stand for Morocco, an Empire or Sultanate, in the northwestern part of Africa".
“Chapter 9. The First 'Red Flag'”, in The Half-Lives of Pat Lowther[1], University of Toronto Press, 2005-01-31, pages 134: "The Alawite dynasty first adopted a red flag for Morocco in the 17th century . Red symbolizes the royal family".
(in English)   The Report: Emerging Morocco 2007, Oxford Business Group, pp. 10  ISBN:  978-1-902339-76-4. : "FLAG: The Moroccan flag is red with a Solomon's seal, a five-pointed star outlined in green. The red flag was introduced by the Alaouite dynasty in the beginning of the 17th century. The Sulayman star was introduced in 1912 to distinguish the country's flag from others. Green and red are colours associated with Islam".
Bowen, Patrick D. (11 September 2017)    (in English)   A History of Conversion to Islam in the United States, Volume 2: The African American Islamic Renaissance, 1920-1975, BRILL, pp. 26  ISBN:  978-90-04-35437-1. : "It is worth noting, too, that in the late seventeenth century, Morocco's Muslim Alaouite dynasty adopted for its country's symbol the plain red flag, which had been used for hundreds of years by various Muslim communities, but was not at that time the symbol of another major African country".
Piquet, Victor (1918)    (in French)   Le Maroc: géographie--histoire--mise en valeur ..., A. Colin, pp. 263  : "The flag of the Sharifian Empire, which was completely red, has been, since the end of 1915, red with a green star in the shape of Solomon's ring".
(in French) (1906)  L'illustration, J. Dubochet, pp. 432  : "...l'étendard rouge - sang de l'empire chérifien".
			
			Moroccan flag in "British Library digitised image from page 337 of "Orient Line Guide"
		
		
			
			Moroccan flag in "Flags of the world 1911"
		
		
			
			Moroccan flag in "United States encyclopedia world flag chart published in 1904"
Flad