Output:
--- Freemason ---
a, where he joined the Darqawi sheikh Muhammad al-Fasi al-Shadhilî. He remained there for eight months and then spent three months in Medina . [ 89 ] Abdelkader photographed in Paris by Étienne Carjat in 1865 On 18 June 1864, after leaving Medina to return to Damascus, Abdelkader was initiated into Freemasonry by the "Les pyramides d’Égypte" lodge in Alexandria , acting on behalf of the Parisian "Henri IV" lodge. His first contact with Freemasonry dates back to September 1860, following the rescue of the Christians of Damascus, when he was approached by Freemasons from the Henri IV lodge, affiliated to the Grand Orient de France . Keen to forge humanitarian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a ye

--- Freemason ---
 . [ 89 ] Abdelkader photographed in Paris by Étienne Carjat in 1865 On 18 June 1864, after leaving Medina to return to Damascus, Abdelkader was initiated into Freemasonry by the "Les pyramides d’Égypte" lodge in Alexandria , acting on behalf of the Parisian "Henri IV" lodge. His first contact with Freemasonry dates back to September 1860, following the rescue of the Christians of Damascus, when he was approached by Freemasons from the Henri IV lodge, affiliated to the Grand Orient de France . Keen to forge humanitarian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a year after his initiation —which was confirmed at the Henri IV lodge in Paris in 1865— he observed among his Masonic "brothers" a gradual eros

--- Freemason ---
Damascus, Abdelkader was initiated into Freemasonry by the "Les pyramides d’Égypte" lodge in Alexandria , acting on behalf of the Parisian "Henri IV" lodge. His first contact with Freemasonry dates back to September 1860, following the rescue of the Christians of Damascus, when he was approached by Freemasons from the Henri IV lodge, affiliated to the Grand Orient de France . Keen to forge humanitarian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a year after his initiation —which was confirmed at the Henri IV lodge in Paris in 1865— he observed among his Masonic "brothers" a gradual erosion of belief in the existence of God and the immortality of the soul. Unable to accept this relativisation of what he r

--- Freemason ---
ready a year after his initiation —which was confirmed at the Henri IV lodge in Paris in 1865— he observed among his Masonic "brothers" a gradual erosion of belief in the existence of God and the immortality of the soul. Unable to accept this relativisation of what he regarded as immutable, he left Freemasonry. [ 90 ] [ 91 ] [ 92 ] [ 93 ] [ note 4 ] In 1865, he travelled to Constantinople , London and Paris. [ 94 ] In 1867, on the occasion of the Paris Exposition , he returned to France at the invitation of Napoleon III . [ 95 ] He was invited to the opening of the Suez Canal on 17 November 1869 because of his connections with the Viceroy of Egypt, Ismail Pasha , and with Ferdinand de Lesseps , the promoter and director of the canal project, of whom he had been one of the most active supporters. [ 96 ] [ 97 ] That same year, whilst still in Egypt, he met Imam Shamil , whose life story —in the Nor

--- Mason ---
e grand cross of the Order of the White Eagle from the Russian Empire , the medal of knighthood of the Order of the Black Eagle from the Kingdom of Prussia , the First Class Medjidie from the Ottoman Empire, the grand cross of the Order of Pope Pius IX from the Vatican , and a Blazing Star from the Masonic obedience Grand Orient de France . Abraham Lincoln sent him a pair of gold-inlaid pistols and Great Britain sent him a likewise gold-inlaid hunting rifle. [ 83 ] In France, the episode represented the culmination of a remarkable turnaround, from being considered as an enemy of France during the first half of the 19th century, to becoming a "friend of France" after having intervened in favour of persecuted Christians. [ 84 ] [ 85 ] "What I did," the Emir replied to Imam Shamil , "I had to do in the name of Islam and respect for human rights". [ 86 ] Last decades [ edit ] Abdelkader in Damasc

--- Mason ---
here he joined the Darqawi sheikh Muhammad al-Fasi al-Shadhilî. He remained there for eight months and then spent three months in Medina . [ 89 ] Abdelkader photographed in Paris by Étienne Carjat in 1865 On 18 June 1864, after leaving Medina to return to Damascus, Abdelkader was initiated into Freemasonry by the "Les pyramides d’Égypte" lodge in Alexandria , acting on behalf of the Parisian "Henri IV" lodge. His first contact with Freemasonry dates back to September 1860, following the rescue of the Christians of Damascus, when he was approached by Freemasons from the Henri IV lodge, affiliated to the Grand Orient de France . Keen to forge humanitarian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a ye

--- Mason ---
 89 ] Abdelkader photographed in Paris by Étienne Carjat in 1865 On 18 June 1864, after leaving Medina to return to Damascus, Abdelkader was initiated into Freemasonry by the "Les pyramides d’Égypte" lodge in Alexandria , acting on behalf of the Parisian "Henri IV" lodge. His first contact with Freemasonry dates back to September 1860, following the rescue of the Christians of Damascus, when he was approached by Freemasons from the Henri IV lodge, affiliated to the Grand Orient de France . Keen to forge humanitarian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a year after his initiation —which was confirmed at the Henri IV lodge in Paris in 1865— he observed among his Masonic "brothers" a gradual eros

--- Mason ---
scus, Abdelkader was initiated into Freemasonry by the "Les pyramides d’Égypte" lodge in Alexandria , acting on behalf of the Parisian "Henri IV" lodge. His first contact with Freemasonry dates back to September 1860, following the rescue of the Christians of Damascus, when he was approached by Freemasons from the Henri IV lodge, affiliated to the Grand Orient de France . Keen to forge humanitarian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a year after his initiation —which was confirmed at the Henri IV lodge in Paris in 1865— he observed among his Masonic "brothers" a gradual erosion of belief in the existence of God and the immortality of the soul. Unable to accept this relativisation of what he r

--- Mason ---
of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a year after his initiation —which was confirmed at the Henri IV lodge in Paris in 1865— he observed among his Masonic "brothers" a gradual erosion of belief in the existence of God and the immortality of the soul. Unable to accept this relativisation of what he regarded as immutable, he left Freemasonry. [ 90 ] [ 91 ] [ 92 ] [ 93 ] [ note 4 ] In 1865, he travelled to Constantinople , London and Paris. [ 94 ] In 1867, on the occasion of the Paris Exposition , he returned to France at the invitation of Napoleon III . [ 95 ] He was invited to the opening of the Suez Canal on 17 November 1869 because of his connections with the Viceroy of Egypt, Ismail Pasha , and with Ferdinand de Lesseps , the promoter and d

--- Mason ---
y a year after his initiation —which was confirmed at the Henri IV lodge in Paris in 1865— he observed among his Masonic "brothers" a gradual erosion of belief in the existence of God and the immortality of the soul. Unable to accept this relativisation of what he regarded as immutable, he left Freemasonry. [ 90 ] [ 91 ] [ 92 ] [ 93 ] [ note 4 ] In 1865, he travelled to Constantinople , London and Paris. [ 94 ] In 1867, on the occasion of the Paris Exposition , he returned to France at the invitation of Napoleon III . [ 95 ] He was invited to the opening of the Suez Canal on 17 November 1869 because of his connections with the Viceroy of Egypt, Ismail Pasha , and with Ferdinand de Lesseps , the promoter and director of the canal project, of whom he had been one of the most active supporters. [ 96 ] [ 97 ] That same year, whilst still in Egypt, he met Imam Shamil , whose life story —in the Nor

--- Mason ---
sablanca and an avenue in Rabat . In Tunisia , to a street in Sfax . In France, to: an ocean liner of the Compagnie Générale Transatlantique , launched in 1880 and dismantled in 1992, a square in Paris (5th arrondissement) and Lyon (7th arrondissement), a street in Toulon and Amboise [ note 7 ] , a Masonic lodge of the Grande Loge de France . In the United States, his name was used to name the town of Elkader, Iowa . The town's founders, Timothy Davis , John Thompson, and Chester Sage, were impressed by his fight against French colonial power and decided to pick his name as the name for their new settlement in 1846. [ 113 ] In Russia, his name has been given to a square in Moscow . Relatives [ edit ] Emir Abdelkader had ten sons and six daughters [ 114 ] . At the beginning of the 20th century, nine sons were living in Syria, as well as five daughters, married to cousins. [ 115 ] His son Hache

--- lodge ---
ad al-Fasi al-Shadhilî. He remained there for eight months and then spent three months in Medina . [ 89 ] Abdelkader photographed in Paris by Étienne Carjat in 1865 On 18 June 1864, after leaving Medina to return to Damascus, Abdelkader was initiated into Freemasonry by the "Les pyramides d’Égypte" lodge in Alexandria , acting on behalf of the Parisian "Henri IV" lodge. His first contact with Freemasonry dates back to September 1860, following the rescue of the Christians of Damascus, when he was approached by Freemasons from the Henri IV lodge, affiliated to the Grand Orient de France . Keen to forge humanitarian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a year after his initiation —which was confi

--- lodge ---
n spent three months in Medina . [ 89 ] Abdelkader photographed in Paris by Étienne Carjat in 1865 On 18 June 1864, after leaving Medina to return to Damascus, Abdelkader was initiated into Freemasonry by the "Les pyramides d’Égypte" lodge in Alexandria , acting on behalf of the Parisian "Henri IV" lodge. His first contact with Freemasonry dates back to September 1860, following the rescue of the Christians of Damascus, when he was approached by Freemasons from the Henri IV lodge, affiliated to the Grand Orient de France . Keen to forge humanitarian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a year after his initiation —which was confirmed at the Henri IV lodge in Paris in 1865— he observed among his

--- lodge ---
iated into Freemasonry by the "Les pyramides d’Égypte" lodge in Alexandria , acting on behalf of the Parisian "Henri IV" lodge. His first contact with Freemasonry dates back to September 1860, following the rescue of the Christians of Damascus, when he was approached by Freemasons from the Henri IV lodge, affiliated to the Grand Orient de France . Keen to forge humanitarian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a year after his initiation —which was confirmed at the Henri IV lodge in Paris in 1865— he observed among his Masonic "brothers" a gradual erosion of belief in the existence of God and the immortality of the soul. Unable to accept this relativisation of what he regarded as immutable, he

--- lodge ---
, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a year after his initiation —which was confirmed at the Henri IV lodge in Paris in 1865— he observed among his Masonic "brothers" a gradual erosion of belief in the existence of God and the immortality of the soul. Unable to accept this relativisation of what he regarded as immutable, he left Freemasonry. [ 90 ] [ 91 ] [ 92 ] [ 93 ] [ note 4 ] In 1865, he travelled to Constantinople , London and Paris. [ 94 ] In 1867, on the occasion of the Paris Exposition , he returned to France at the invitation of Napoleon III . [ 95 ] He was invited to the opening of the Suez Canal on 17 November 1869 because of his connections with the Viceroy of Egypt, Ismail Pasha , and

--- lodge ---
 and an avenue in Rabat . In Tunisia , to a street in Sfax . In France, to: an ocean liner of the Compagnie Générale Transatlantique , launched in 1880 and dismantled in 1992, a square in Paris (5th arrondissement) and Lyon (7th arrondissement), a street in Toulon and Amboise [ note 7 ] , a Masonic lodge of the Grande Loge de France . In the United States, his name was used to name the town of Elkader, Iowa . The town's founders, Timothy Davis , John Thompson, and Chester Sage, were impressed by his fight against French colonial power and decided to pick his name as the name for their new settlement in 1846. [ 113 ] In Russia, his name has been given to a square in Moscow . Relatives [ edit ] Emir Abdelkader had ten sons and six daughters [ 114 ] . At the beginning of the 20th century, nine sons were living in Syria, as well as five daughters, married to cousins. [ 115 ] His son Hachem return

--- initiated ---
eturned to Mecca, where he joined the Darqawi sheikh Muhammad al-Fasi al-Shadhilî. He remained there for eight months and then spent three months in Medina . [ 89 ] Abdelkader photographed in Paris by Étienne Carjat in 1865 On 18 June 1864, after leaving Medina to return to Damascus, Abdelkader was initiated into Freemasonry by the "Les pyramides d’Égypte" lodge in Alexandria , acting on behalf of the Parisian "Henri IV" lodge. His first contact with Freemasonry dates back to September 1860, following the rescue of the Christians of Damascus, when he was approached by Freemasons from the Henri IV lodge, affiliated to the Grand Orient de France . Keen to forge humanitarian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. B

--- Pyramides ---
arqawi sheikh Muhammad al-Fasi al-Shadhilî. He remained there for eight months and then spent three months in Medina . [ 89 ] Abdelkader photographed in Paris by Étienne Carjat in 1865 On 18 June 1864, after leaving Medina to return to Damascus, Abdelkader was initiated into Freemasonry by the "Les pyramides d’Égypte" lodge in Alexandria , acting on behalf of the Parisian "Henri IV" lodge. His first contact with Freemasonry dates back to September 1860, following the rescue of the Christians of Damascus, when he was approached by Freemasons from the Henri IV lodge, affiliated to the Grand Orient de France . Keen to forge humanitarian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a year after his initiation

--- Henri IV ---
hs and then spent three months in Medina . [ 89 ] Abdelkader photographed in Paris by Étienne Carjat in 1865 On 18 June 1864, after leaving Medina to return to Damascus, Abdelkader was initiated into Freemasonry by the "Les pyramides d’Égypte" lodge in Alexandria , acting on behalf of the Parisian "Henri IV" lodge. His first contact with Freemasonry dates back to September 1860, following the rescue of the Christians of Damascus, when he was approached by Freemasons from the Henri IV lodge, affiliated to the Grand Orient de France . Keen to forge humanitarian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a year after his initiation —which was confirmed at the Henri IV lodge in Paris in 1865— he observed am

--- Henri IV ---
 was initiated into Freemasonry by the "Les pyramides d’Égypte" lodge in Alexandria , acting on behalf of the Parisian "Henri IV" lodge. His first contact with Freemasonry dates back to September 1860, following the rescue of the Christians of Damascus, when he was approached by Freemasons from the Henri IV lodge, affiliated to the Grand Orient de France . Keen to forge humanitarian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a year after his initiation —which was confirmed at the Henri IV lodge in Paris in 1865— he observed among his Masonic "brothers" a gradual erosion of belief in the existence of God and the immortality of the soul. Unable to accept this relativisation of what he regarded as immutabl

--- Henri IV ---
rian ties, the Emir welcomed the principles and ideals of the GOF: the existence of God (" Great Architect of the Universe "), the immortality of the soul, the love of humanity, the practice of tolerance, and universal brotherhood. But already a year after his initiation —which was confirmed at the Henri IV lodge in Paris in 1865— he observed among his Masonic "brothers" a gradual erosion of belief in the existence of God and the immortality of the soul. Unable to accept this relativisation of what he regarded as immutable, he left Freemasonry. [ 90 ] [ 91 ] [ 92 ] [ 93 ] [ note 4 ] In 1865, he travelled to Constantinople , London and Paris. [ 94 ] In 1867, on the occasion of the Paris Exposition , he returned to France at the invitation of Napoleon III . [ 95 ] He was invited to the opening of the Suez Canal on 17 November 1869 because of his connections with the Viceroy of Egypt, Ismail Pasha

--- Henri IV ---
 ISBN / Date incompatibility ( help ) ^ Teissier 2020 , p. 76. sfn error: multiple targets (2×): CITEREFTeissier2020 ( help ) ^ Churchill 2010 , p. 324. ^ d’Aire-Boissonnet 1900 , p. 249. ^ Chodkiewicz, Michel (1982). "Introduction". Abd el-Kader : Écrits spirituels . Paris: Le Seuil. p. 16. ^ Loge Henri IV (Paris) (1865). Tenue solennelle du 1er septembre 1864: initiation de l'Emir Abd-El-Kader . Paris: Editions du Grand Orient de France. p. 9 . Retrieved 2 May 2026 . ^ Kebache, Mouloud (2012), "Abd el-Kader et la franc-maçonnerie française: une relation controversée", Abd el-Kader, un spirituel dans la modernité , Presses de l’Ifpo, pp. 83– 98, ISBN 978-2-35159-327-1 , retrieved 2 May 2026 . ^ Drici, Brahim (2008), "Le F∴ Abd el-Kader entendait concilier soufisme et franc-maçonnerie", La chaîne d'union , vol. 46/4, Paris: Grand Orient de France, pp. 9– 10, doi : 10.3917/cdu.046.0009 , ISSN 029


Jetzt die moderne Perspektive — Freemasonry-Hauptartikel zu muslimischen Ländern, und Fatwas:

Explanation: The Emir Abdelkader material is excellent. Now I need to get the modern perspective — the Freemasonry main article section about Muslim countries, and the Fatwa/religious positions. Let me also search for the specific Wikipedia section on "Freemasonry and Islam" or the main Freemasonry article's section on Islam.

terminal

curl -s -L -A "Mozilla/5.0" "https://en.wikipedia.org/w/api.php?action=parse&page=Freemasonry&prop=text&section=15&format=json" 2>&1 | python3 -c "
import sys, json, re, html as h
d = json.load(sys.stdin)
text = d.get('parse',{}).get('text',{}).get('*','')
text = re.sub(r'<[^>]+>', ' ', text)
text = h.unescape(text)
text = re.sub(r'\s+', ' ', text)
print(text[:5000])
" 2>&1


Output: North America [ edit ] Erasmus James Philipps , first Freemason in present-day Canada, Old Burying Ground (Halifax, Nova Scotia) Federal Hall, New York City, site of George Washington's first inauguration, April 30, 1789. Masonic Conescecration of Solder Monument Gettysburg PA July 1865 (Made from Alexander Gardner Photograph Harper's Weekly July 22,1865 p.453) Illustration promoting African American ascent of the ladder of success, from a Prince Hall Masonic convention program book in 1920 The earliest known American lodges were in Pennsylvania . The collector for the port of Pennsylvania , John Moore, wrote of attending lodges there in 1715, two years before the putative formation of the first Grand Lodge in London. The Grand Lodge of England appointed a Provincial Grand Master for North America in 1731, based in Pennsylvania, [ 1 ] leading to the creation of the Grand Lodge of Pennsylvania . In Canada Erasmus James Philipps became a Freemason while working on a commission to resolve boundaries in New England and, in 1739 he became provincial Grand Master for Nova Scotia ; Philipps founded the first Masonic lodge in Canada at Annapolis Royal, Nova Scotia . [ 2 ] Other lodges in the colony of Pennsylvania obtained authorisations from the later Antient Grand Lodge of England , the Grand Lodge of Scotland and the Grand Lodge of Ireland , which was particularly well represented in the travelling lodges of the British Army. [ 3 ] [ 4 ] Many lodges came into existence with no warrant from any Grand Lodge, applying and paying for their authorisation only after they were confident of their own survival. [ 5 ] After the American Revolution independent US Grand Lodges developed within each state. Some thought was briefly given to organising an overarching "Grand Lodge of the United States", with George Washington , who was a member of a Virginian lodge, as the first Grand Master, but the idea was short-lived. The various state Grand Lodges did not wish to diminish their own authority by agreeing to such a body. [ 6 ] On 30 April 1789, Washington took his oath of office at his first inauguration upon a Bible belonging to St. John's Lodge No. 1 of New York. [ 7 ] Robert Livingston , Chancellor of the State of New York, also the first Grand Master of the Grand Lodge of Free and Accepted Masons of the State of New York , administered the oath. [ 8 ] Prince Hall Freemasonry [ edit ] .mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+span.mw-empty-elt+.hatnote,.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}} Main article: Prince Hall Freemasonry Prince Hall Freemasonry exists because of the refusal of early American lodges to admit African Americans. In 1775, an African American named Prince Hall , [ 9 ] along with 14 other African American men, was initiated into a British military lodge with a warrant from the Grand Lodge of Ireland , having failed to obtain admission from the other lodges in Boston . When the British military Lodge left North America after the end of the Revolutionary War, those 15 men were given the authority to meet as a Lodge, but not to initiate Masons. In 1784, these individuals obtained a Warrant from the Grand Lodge of England (Premiere Grand Lodge) and formed African Lodge, Number 459 . When the two English grand lodges united in 1813, all U.S.-based Lodges were stricken from their rolls—largely because of the War of 1812 . Thus, separated from both English jurisdiction and any concordantly recognised U.S. Grand Lodge, African Lodge retitled itself as the African Lodge, Number 1—and became a de facto Grand Lodge. (This lodge is not to be confused with the various Grand Lodges in Africa.) As with the rest of US Freemasonry, Prince Hall Freemasonry soon grew and organised on a Grand Lodge system for each state. [ 10 ] Unlike other fraternal orders , there was never any blanket rule against the admission of men based on their race. Each lodge and grand lodge had their own rules, both written and unwritten. A few non-Prince Hall lodges did admit Blacks, with Angelo Soliman being one notable Masonic personality of African descent. Nonetheless, widespread racial segregation in 19th- and early-20th-century North America made it difficult for African Americans to join Lodges outside of Prince Hall jurisdictions. [ citation needed ] Today most (but not all) US Grand Lodges recognise their Prince Hall counterparts, and the authorities of both traditions are working towards full recognition. [ 11 ] The United Grand Lodge of England has no problem with recognising Prince Hall Grand Lodges. [ 12 ] While celebrating their heritage as lodges of African Americans, Prince Hall is open to all men regardless of race or religion. [ 13 ] ^ Francis Vicente, An Overview of Early Freemasonry in Pen


Explanation: Let me try to get the section about Islam and Freemasonry from the main Freemasonry article. The section parameter didn't work well. Let me search for the specific content about Muslim countries.

curl -s -L -A "Mozilla/5.0" "https://en.wikipedia.org/w/api.php?action=parse&page=Freemasonry&prop=text&format=json" 2>&1 | python3 -c "
import sys, json, re, html as h
d = json.load(sys.stdin)
text = d.get('parse',{}).get('text',{}).get('*','')
text = re.sub(r'<[^>]+>', ' ', text)
text = h.unescape(text)
text = re.sub(r'\s+', ' ', text)
# Find Islam/Muslim sections
for kw in ['Islam', 'Muslim', 'Morocco', 'Turkey', 'ban', 'religious opposition', 'fatwa', 'haram']:
    for m in re.finditer(kw, text, re.IGNORECASE):
        start = max(0, m.start()-300)
        end = min(len(text), m.end()+800)
        print(f'--- {kw} ---')
        print(text[start:end])
        print()
        break
" 2>&1


Output:
--- Islam ---
side of the more traditional rites of Freemasonry that require an individual to be a Master Mason before they can join. Throughout its history Freemasonry has received criticism and opposition on religious, moral and political grounds. The Catholic Church , some Protestant denominations and certain Islamic countries or entities have expressed opposition to or banned membership in Freemasonry. Opposition to Freemasonry is sometimes rooted in antisemitism or conspiracy theories , [ 15 ] [ 16 ] and Freemasons have been persecuted by authoritarian states. [ 17 ] [ 18 ] Masonic lodge [ edit ] Main article: Masonic lodge Lodge in Palazzo Roffia, Florence , set out for French (Premiere Grand Lodge) ritual The Masonic lodge is the basic organisational unit of Freemasonry. [ 19 ] Lodge activities and meetings [ edit ] The Masonic Lodge meets regularly to conduct various activities. While practices vary by jurisdiction , Rite and local tradition, there are common elements across Freemasonry. [ 20 ] In many jurisdictions, Lodges conduct the usual formal business of any small organisation during regu

--- Muslim ---
theologian Mūhammād Rashīd Ridâ (1865–1935) played a crucial role in leading the opposition to Freemasonry across the Islamic world during the early twentieth century. [ 190 ] Through his popular pan-Islamic journal Al-Manar , Rashid Rida spread anti-Masonic ideas which would directly influence the Muslim Brotherhood and subsequent Islamist movements, such as Hamas . [ 191 ] In article 28 of its Covenant, Hamas states that Freemasonry, Rotary and other similar groups "work in the interest of Zionism and according to its instructions ..." [ 192 ] Several predominantly Muslim countries have banned Freemasonry within their borders, while others have not. Turkey and Morocco have established Grand Lodges, [ 193 ] while in countries such as Malaysia [ 194 ] [ 195 ] and Lebanon , [ 196 ] there are District Grand Lodges operating under a warrant from an established Grand Lodge. In 1972, in Pakistan , Zulfiqar Ali Bhutto , then Prime Minister of Pakistan , placed a ban on Freemasonry. Lodge buildings were confiscated by the government. [ 197 ] Masonic lodges existed in Iraq as early as 1917, when t

--- Morocco ---
 191 ] In article 28 of its Covenant, Hamas states that Freemasonry, Rotary and other similar groups "work in the interest of Zionism and according to its instructions ..." [ 192 ] Several predominantly Muslim countries have banned Freemasonry within their borders, while others have not. Turkey and Morocco have established Grand Lodges, [ 193 ] while in countries such as Malaysia [ 194 ] [ 195 ] and Lebanon , [ 196 ] there are District Grand Lodges operating under a warrant from an established Grand Lodge. In 1972, in Pakistan , Zulfiqar Ali Bhutto , then Prime Minister of Pakistan , placed a ban on Freemasonry. Lodge buildings were confiscated by the government. [ 197 ] Masonic lodges existed in Iraq as early as 1917, when the first lodge under the United Grand Lodge of England (UGLE) was opened. Nine lodges under UGLE existed by the 1950s, and a Scottish lodge was formed in 1923. However, the position changed following the revolution, and all lodges were forced to close in 1965. [ 198 ] This position was later reinforced under Saddam Hussein ; the death penalty was prescribed for those wh

--- Turkey ---
me of Sacred Law By country Barbados Belgium Canada China Croatia Cuba Denmark France Finland Germany Iceland India Indonesia Israel Italy Jamaica Japan Lebanon Luxembourg Malaysia Malta Mexico North Macedonia Philippines Portugal Romania Russia Scotland South Africa Spain Sri Lanka Sweden Thailand Turkey Ukraine Venezuela United Kingdom United States .mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-pa

--- ban ---
ntine Scottish Rite Knight Kadosh French Rite Societas Rosicruciana Order of Royal and Select Masters Grand College of Rites Swedish Rite Order of Saint Thomas of Acon Royal Order of Scotland Order of Knight Masons Research Lodge Corks Side degrees The Shrine Royal Order of Jesters Tall Cedars of Lebanon The Grotto Masonic groups for women Women and Freemasonry Order of the Amaranth Order of the Eastern Star Prince Hall Order of the Eastern Star Co-Freemasonry Masonic youth organizations DeMolay A.J.E.F. Job's Daughters International Order of the Rainbow for Girls Views on Masonry Anti-Masonry Anti-Masonic Party Grand Anti-Masonic Exhibition Masonic conspiracy theories Christian attitudes towards Freemasonry Papal ban of Freemasonry Taxil hoax People and places Masonic Temple James Anderson Prince Hall William Preston Thomas Smith Webb Albert Mackey Albert Pike John the Evangelist John the Baptist William Schaw Elizabeth Aldworth List of Freemasons Lodge Mother Kilwinning Freemasons' Hall, London Mark Masons' Hall, London House of the Temple Solomon's Temple Detroit Masonic Temple List

--- religious opposition ---
f a corrupt conspiracy of some form. The political opposition that arose after the American " Morgan Affair " in 1826 gave rise to the term Anti-Masonry , which is still in use in America today, both by Masons in referring to their critics and as a self-descriptor by the critics themselves. [ 161 ] Religious opposition [ edit ] Freemasonry has attracted criticism from theocratic states and organised religions that believe it is in competition with religion or perceive the fraternity's views or practices as heterodox ; it has also long been the target of conspiracy theories that assert Freemasonry to be an occult and evil power. [ 162 ] Christianity and Freemasonry [ edit ] Main article: Christian attitudes towards Freemasonry Catholicism [ edit ] The denomination with the longest history of objection to Freemasonry is the Catholic Church . The objections raised by the Catholic Church are based on the allegation that Masonry teaches a naturalistic deistic religion which is in conflict with Church doctrine , [ 163 ] as well as the practice of blood oaths. [ 164 ] Some Catholics, particularly priests who w


Explanation: The Wikipedia article on Freemasonry has a section on Islam and Freemasonry. Let me get that specificsection.

curl -s -L -A "Mozilla/5.0" "https://en.wikipedia.org/w/api.php?action=parse&page=Freemasonry&prop=text&section=20&format=json" 2>&1 | python3 -c "
import sys, json, re, html as h
d = json.load(sys.stdin)
text = d.get('parse',{}).get('text',{}).get('*','')
text = re.sub(r'<[^>]+>', ' ', text)
text = h.unescape(text)
text = re.sub(r'\s+', ' ', text)
print(text[:6000])
" 2>&1


Output: Freemasonry in the Middle East [ edit ] .mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+span.mw-empty-elt+.hatnote,.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}} Further information: Freemasonry in the Middle East After the failure of the 1830 Italian revolution , a number of Italian Freemasons were forced to flee. They secretly set up an approved chapter of Scottish Rite in Alexandria , a town already inhabited by a large Italian community. Meanwhile, the French Freemasons publicly organised a local chapter in Alexandria in 1845. [ 1 ] During the 19th and 20th century, Masonic lodges operated widely across all parts of the Ottoman Empire and numerous Sufi orders shared a close relationship with them. Many Young Turks affiliated with the Bektashi Order were members and patrons of Freemasonry. They were also closely allied against European imperialism . Many Ottoman intellectuals believed that Sufism and Freemasonry shared close similarities in doctrines, spiritual outlook and mysticism. [ 2 ] ^ .mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#bf3c2c)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#bf3c2c)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}} M. Landau, Jacob (1965). "Prolegomena to a study of secret societies in modern Egypt" . Middle Eastern Studies . 1 (2). Routledge: 139. doi : 10.1080/00263206508700010 . ISSN 0026-3206 – via Tandfonline. ^ De Poli, Barbara (2019). "Chapter 6: Sufi and Freemasons in the Ottoman Empire 6.1 ʿAbd Al-Qādir Al-Jazāʾirī". Freemansonry and the Orient: Esotericisms between the East and the West . Edizioni Ca' Foscari-Digital publishing. pp. 75– 86. ISBN 978-8869693397 .


Jetzt noch die Fatwa-Seite und moderne muslimische Freimaurer:

Explanation:
Based on the extensive research I've conducted, I now have a comprehensive picture. Let me compile the findings into a well-structured report for the user. I have:

1. **Historical Muslim Freemasons**:
   - Muhammad Abduh (Grand Mufti of Egypt) - joined Freemasonry at 28, member of Kawkab Al-Sharq lodge, later withdrew
   - Jamal ad-Din al-Afghani - mentor of Abduh, also a Freemason
   - Emir Abdelkader - Algerian Islamic scholar/Sufi, initiated 1864 in Alexandria, later left
   - Sultan Murad V - Ottoman Sultan, first and only to join Freemasonry
   - Many Young Turks / Bektashi Sufis

2. **Modern situation**:
   - Turkey and Morocco have established Grand Lodges
   - Malaysia and Lebanon have District Grand Lodges under UGLE
   - Pakistan banned Freemasonry in 1972
   - Iraq had lodges until 1965, death penalty under Saddam
   - Hamas Covenant Article 28 explicitly condemns Freemasonry
   - Muslim Brotherhood influenced by Rashid Rida's anti-Masonic writings

3. **Religious positions**:
   - Rashid Rida (al-Manar) led opposition, called it "kufr"
   - Abduh himself later called Freemasonry "one of the forms of kufr"
   - Many Islamic countries ban it; some don't
   - Sufi-Freemason connections historically existed

4. **Key sources**:
   - Wikipedia articles with academic citations
   - Kudsi-Zadeh (1972) "Afghānī and Freemasonry in Egypt" - Journal of American Oriental Society
   - Wissa (1989) "Freemasonry in Egypt 1798-1921" - British Society for Middle Eastern Studies Bulletin
   - Dumont (2005) "Freemasonry in Turkey" - European Review
   - De Poli (2019) "Sufi and Freemasons in the Ottoman Empire"
   - Ryad (2022) on Rashid Rida's views

Now I should also check Camofox for additional sources. Let me also search for specific fatwas and contemporary Muslim freemasons.

Actually, let me also do a quick search for "Muslim freemasons today" and "fatwa freemasonry Islam" to round this out.

curl -s -L -A "Mozilla/5.0" "https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=fatwa+Freemasonry+Islam+haram+Grand+Mufti&format=json&srlimit=10" 2>&1 | python3 -c "
import sys, json
d = json.load(sys.stdin)
for r in d.get('query',{}).get('search',[]):
    print(f\"Title: {r['title']}\")
    print(f\"Snippet: {r['snippet']}\")
    print()
"


Output:
Title: Islam and democracy
Snippet: Arabia: Grand Mufti Shaykh Abdul Aziz Ash-Shaikh, Shaykh Abdul Muhsin Al-Abbad, Shaykh Wasiullah Abbas and Saudi Arabia's most senior fatwa panel of

Title: Yusuf al-Qaradawi
Snippet: Al-Azhar's Grand Imam, also an Egyptian Grand Mufti Sheikh Muhammad Sayyid Tantawy, have also pointed out that niqab has nothing to do with Islam. At the

Title: Politics and Islam
Snippet: Abduh, an Egyptian Islamic scholar, judge, and Grand Mufti of Egypt, was a central figure of the Arab Nahḍa (awakening), and Islamic Modernism in the late


Explanation: The Wikipedia search for fatwa + Freemasonry didn't return direct results. Let me try a broader web search for fatwas on Freemasonry, and also look for specific modern Muslim Freemasons. Let me also try to get the "Islam and Freemasonry" page if it exists, and search for specific fatwa content.

curl -s -L -A "Mozilla/5.0" "https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=%22Freemasonry%22+%22fatwa%22&format=json&srlimit=10" 2>&1 | python3 -c "
import sys, json
d = json.load(sys.stdin)
for r in d.get('query',{}).get('search',[]):
    print(f\"Title: {r['title']}\")
    print(f\"Snippet: {r['snippet']}\")
    print()
"


Output:
Title: Nick Offerman
Snippet: YouTube. "History Archives". Freemasonry. Retrieved January 30, 2026. "Nick Offerman: Mason & Actor | Ohio Freemasonry". Freemasonry. May 29, 2025. Retrieved

Title: Rashid Rida
Snippet: rationalist school of Abduh. He strongly opposed liberalism, Western ideas, freemasonry, Zionism, and European imperialism, and supported armed Jihad to expel

Title: Yusuf al-Qaradawi
Snippet: European Council for Fatwa and Research, a council of important and influential Muslim scholars dedicated to researching and writing fatwas in support of Western

Title: Religious anti-Zionism
Snippet: Yusuf al-Qaradawi cited the expulsion of Palestinians. A fatwa from the European Council for Fatwa and Research condemned "Zionists who usurped Palestinian

Title: Anti-clericalism
Snippet: matters. In practice this means asking a cleric trained in Islamic law for a fatwa or ‘legal opinion’ on the issue the Muslim is concerned about. This ties

Title: Political quietism in Islam
Snippet: al-Uthaymeen, one of the most influential Islamic scholars of his era, stated in a fatwa: "A factor that hinders from Takfîr shouldn’t exist when a person performs

Title: John Safran vs God
Snippet: Hamza and succeeds in getting a fatwa placed on Rove McManus for dropping John's scheduled appearance on Rove Live. The fatwa was later removed from McManus

Title: Emir Abdelkader
Snippet: striving to concentrate on his spiritual authority, through obtaining a fatwa which gave him firm authority to call for jihad and make tax avoidance a

Title: Islam and democracy
Snippet: Muhsin Al-Abbad, Shaykh Wasiullah Abbas and Saudi Arabia's most senior fatwa panel of scholars, "Permanent Committee for Scholarly Research and Ifta"

Title: Hindu law
Snippet: In 1832, the British colonial government abolished accepting religious fatwa as a source of law. In 1835, the British began creating a new criminal code


Jetzt Camofox für die tieferen Quellen — akademische Papers, Fatwas, moderne Logen:

Explanation: Let me now use Camofox browser to get deeper sources, especially academic papers and specific fatwas.


zimaos-camofox-browser

---
name: zimaos-camofox-browser
description: "Camofox-Browser als persistenten Docker-Dienst auf ZimaOS für Hermes-Browser-Automation einrichten und betreiben."
version: 1.0.0
author: Kiwi (Ahmed Zeyd Aytac)
tags: [zimaos, camofox, browser, docker, compose, hermes, anti-detection, persistence]
---

# ZimaOS Camofox Browser

Ziel: Auf dem ZimaOS-Server soll Browser-Automation für Hermes **immer** über einen lokalen Camofox-Browser-Container laufen — nicht über Webtop, nicht primär über linuxserver/chromium, nicht primär über Kasm und nicht primär über Browserless.

## Architekturstandard

1. **Camofox local mode** als Docker/Compose-Dienst auf ZimaOS bevorzugen.
2. Hermes verwendet seine nativen Browser-Tools über `CAMOFOX_URL`.
3. Hermes direkt auf ZimaOS-Host → `CAMOFOX_URL=http://127.0.0.1:9377`.
4. Hermes selbst in Docker → gemeinsames Docker-Netzwerk und `CAMOFOX_URL=http://camofox-browser:9377`.
5. **Persistence aktivieren**, damit Cookies, Logins, LocalStorage und Sessions über Neustarts erhalten bleiben.
6. noVNC nur zur Beobachtung oder manuellen MFA/CAPTCHA/Login-Hilfe; noVNC ist **nicht** die primäre Agentensteuerung.
7. Camofox-API nicht öffentlich ins WAN exponieren. Port 9377 an localhost oder nur an internes Docker-Netzwerk binden.
8. **Keinen `CAMOFOX_API_KEY` setzen**, solange Hermes' Camofox-Integration bei gesetztem Key 403-Probleme haben kann. Sicherheit stattdessen über Bind-Adresse, Firewall, Docker-Netzwerk, VPN oder SSH-Tunnel.
9. Für ZimaOS persistente Pfade unter `/DATA/AppData/camofox` verwenden. Keine fragilen Container ohne Volume.
10. Sessions nach Aufgaben: erst `browser.camofox.managed_persistence: true` prüfen, optional extern gemanagte Sessions mit `CAMOFOX_USER_ID`, `CAMOFOX_SESSION_KEY` und `CAMOFOX_ADOPT_EXISTING_TAB=true`.

## Referenz-Compose für ZimaOS

```yaml
services:
  camofox-browser:
    image: camofox-browser:local
    container_name: camofox-browser
    restart: unless-stopped
    ports:
      - "127.0.0.1:9377:9377"
      - "127.0.0.1:6080:6080"
    environment:
      CAMOFOX_PORT: "9377"
      ENABLE_VNC: "1"
      VNC_BIND: "0.0.0.0"
      VNC_RESOLUTION: "1920x1080"
      MAX_OLD_SPACE_SIZE: "2048"
    volumes:
      - /DATA/AppData/camofox:/root/.camofox
```

## Hermes-Konfiguration

### 1. `.env` — CAMOFOX_URL setzen

```bash
# In ~/.hermes/.env:
CAMOFOX_URL=http://127.0.0.1:9377
```

Bei Hermes-in-Docker stattdessen:
```bash
CAMOFOX_URL=http://camofox-browser:9377
```

### 2. `config.yaml` — managed persistence

```yaml
browser:
  camofox:
    managed_persistence: true
```

### 3. Browser-Toolset aktivieren

```bash
hermes tools enable browser
```

### 4. Hermes vollständig neu starten

Nach allen Änderungen muss Hermes komplett neu gestartet werden (Gateway-Restart oder CLI-Neustart).

## Verifikation

### Schritt 1: Camofox-Erreichbarkeit prüfen

```bash
curl -fsS http://127.0.0.1:9377/health
# oder einen anderen API-Endpunkt des Camofox-Servers
```

### Schritt 2: CAMOFOX_URL in .env prüfen

```bash
grep CAMOFOX_URL ~/.hermes/.env
```

### Schritt 3: Browser-Aufgabe + noVNC-Beobachtung

```bash
# noVNC über SSH-Tunnel:
ssh -L 6080:127.0.0.1:6080 user@zimaos
# Dann im Browser: http://localhost:6080
```

Starte eine Browser-Aufgabe in Hermes und beobachte über noVNC.

### Schritt 4: Persistenz-Test

1. Logge dich manuell auf einer Website ein.
2. Beende die Browser-Aufgabe.
3. Starte eine neue Browser-Aufgabe.
4. Prüfe, ob der Login erhalten bleibt.

### Schritt 5: Docker-Netzwerk-Fallback

Wenn Hermes in Docker läuft und `127.0.0.1` nicht funktioniert:
```bash
CAMOFOX_URL=http://camofox-browser:9377
```
im gemeinsamen Docker-Netzwerk verwenden.

## Build-Prozess (ZimaOS)

Da `jo-inc/camofox-browser` kein öffentliches Docker-Image hat, muss **lokal gebaut** werden.
ZimaOS hat kein `make` — die Schritte sind manuell:

### 1. Repo clonen + Assets downloaden

```bash
cd /tmp
git clone https://github.com/jo-inc/camofox-browser.git
cd camofox-browser
mkdir -p dist
curl -fSL "https://github.com/daijro/camoufox/releases/download/v135.0.1-beta.24/camoufox-135.0.1-beta.24-lin.x86_64.zip" -o dist/camoufox-x86_64.zip
curl -fSL "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux" -o dist/yt-dlp-x86_64
```

### 2. Image bauen (mit VNC-Support)

Der Standard-Dockerfile hat **kein** `x11vnc`, `noVNC` oder `websockify`.
Ein angepasster Dockerfile wird benötigt. Siehe `references/build-dockerfile.md` für das vollständige Dockerfile.

```bash
DOCKER_BUILDKIT=1 docker build --no-cache \
  --build-arg ARCH=x86_64 \
  --build-arg CAMOUFOX_VERSION=135.0.1 \
  --build-arg CAMOUFOX_RELEASE=beta.24 \
  -t camofox-browser:135.0.1-x86_64 \
  -f /path/to/custom.Dockerfile .
```

### 3. VNC-Config für Camofox

VNC ist im Standard-Image **deaktiviert**. Config mit aktiviertem VNC als Volume mounten:

```json
{
  "id": "camofox-browser",
  "name": "Camofox Browser",
  "version": "1.6.0",
  "plugins": {
    "youtube": { "enabled": true },
    "persistence": { "enabled": true },
    "vnc": { "enabled": true, "resolution": "1920x1080" }
  }
}
```

Die Datei ins Compose-File einbinden (siehe Referenz-Compose).

### 4. Websockify nachinstallieren (im laufenden Container)

`websockify` fehlt im Python-Path des Containers und muss nachinstalliert werden:

```bash
docker exec camofox-browser pip3 install --break-system-packages websockify
# Oder im Dockerfile ergänzen: RUN pip3 install --break-system-packages websockify
```

### Compose-File starten

```bash
docker --config /tmp/docker-config compose -f /DATA/AppData/camofox-compose/docker-compose.yml up -d
```

**Wichtig:** Auf ZimaOS immer `DOCKER_CONFIG=/tmp/docker-config` setzen — `/root/.docker` ist read-only.

## Web-Research Patterns (new in this session)

When doing ad-hoc web research through Camofox, use this ordered fallback chain:

1. **Search with DuckDuckGo first.** Google frequently blocks Camofox/jina.ai with 429/CAPTCHA. DuckDuckGo (`https://duckduckgo.com/?q=...`) is far more tolerant of automated text extraction and usually returns enough link text via the `/tabs/:tabId/links` endpoint.
2. **Extract article text with r.jina.ai.** `curl -sL "https://r.jina.ai/<URL>" -H "Accept: text/plain"` renders JS and returns clean markdown. Many news sites and blogs work; some block it (403). Use it before falling back to screenshots.
3. **Use Camofox only when the above is insufficient.** Good for: JavaScript-heavy sites, pages that block jina.ai, consent popups, or when you need a screenshot for visual confirmation.
4. **Avoid Fandom, Reddit, and X for anonymous extraction.** All three actively block anonymous/automated access with Cloudflare, JS challenges, or login walls. Use them only as a last resort and expect failures.

### Content Extraction from SPAs (JS-heavy sites)

Many modern sites are React/SPA — `curl` gets empty `<div id="root">`. This includes Austrian government sites: **RIS** (Rechtsinformationssystem), **Findok** (BMF Steuerdokumente), WU Wien, ÖH WU. For legal research on RIS, see `references/ris-legal-research.md` for the proven workflow.

General extraction options for SPAs:

1. **links endpoint** (fast, no JS needed): `GET /tabs/:tabId/links?userId=kiwi` — returns link texts, but hrefs may be empty (JS-routed).
2. **screenshot + vision** (reliable): Take screenshot, `vision_analyze` it for visual content.
3. **jina.ai reader** (best for text extraction): `curl -sL "https://r.jina.ai/<URL>" -H "Accept: text/plain"` — renders JS and returns clean markdown. Use when browser-extracted content is insufficient.
4. **Hidden JSON APIs** (fastest, no browser needed): Many JS SPAs have backend API endpoints. Look for them in page source (`grep -oP 'api|endpoint|json|type=\d+'`), or try common patterns like `?type=INTEGER` on the page URL. Example: `ihr-notariat.at/notarfinder/?type=1602231006` returned the full Austrian notary database as JSON — avoiding the entire SPA. Always try this before launching browser automation for content extraction.
5. **evaluate endpoint**: `POST /tabs/:tabId/evaluate` — requires `CAMOFOX_API_KEY` unless loopback. For localhost calls without API key, prefer links + screenshot.

### Cookie / Consent Popups

Many EU sites (WU, ÖH, Herzstiftung, Deutsches Ärzteblatt) show cookie banners that overlay content and often resist automated dismissal. Dismiss via:
- `POST /tabs/:tabId/click` with selector `"button:has-text('Alle akzeptieren')"` or similar
- If clicking times out (popup blocks interaction), try waiting 2-3s first, then click
- Take screenshot after dismissal to verify
- For medical/government sites specifically, cookie walls and paywalls frequently defeat both `jina.ai` and Camofox `/click`. See `references/research-patterns.md` Pattern 5 for the full fallback chain.

### Prayer Times API

For Islamic prayer times, use the free Aladhan API. See `references/aladhan-prayer-times-api.md` for endpoints, parameters, and the high-latitude adjustment method needed for cities like Vienna.

### Gold & Precious Metals Valuation

For valuing gold coins, bars, and silver: combine live spot-price APIs (gold-api.com, exchangerate-api.com) with dealer-specific Camofox screenshots. See `references/gold-precious-metals-research.md` for the full two-layer workflow, Turkish coin reference table, and conversion formulas.

### Auth / sessionKey Convention

- **POST endpoints**: `userId` and `sessionKey` go in the **JSON body**, NOT as query params. Query params are ignored.
  ```bash
  # ✅ CORRECT
  curl -X POST "http://127.0.0.1:9377/tabs" \
    -d '{"userId":"kiwi","sessionKey":"default","url":"https://example.com"}'

  # ❌ WRONG — query params ignored
  curl -X POST "http://127.0.0.1:9377/tabs?userId=kiwi&sessionKey=default" \
    -d '{"url":"https://example.com"}'
  ```
- **GET endpoints** (screenshot, links): use **query params**.
  ```bash
  curl "http://127.0.0.1:9377/tabs/$TAB/screenshot?userId=kiwi&sessionKey=default"
  ```
- The `sessionKey` value is arbitrary — `"default"`, `"tuya"`, etc. all work as long as it's present.

### API Endpoint Quirks

| Endpoint | Method | Notes |
|----------|--------|-------|
| `/tabs` | POST | Create tab — `{userId, sessionKey, url}` in body → returns `tabId` |
| `/tabs?userId=kiwi` | GET | List all tabs for user — works |
| `/tabs/:tabId?userId=kiwi` | GET | May return 404 with current version — use listing instead |
| `/tabs/:tabId/links?userId=kiwi&sessionKey=X` | GET | Link extraction — JS-routed sites have empty hrefs (React SPA). Returns `{links, pagination}`. Buttons/submit inputs inside forms are NOT listed (they're not `<a>` tags) |
| `/tabs/:tabId/screenshot?userId=kiwi&sessionKey=X` | GET | Screenshot — works, reliable. Returns PNG via stdout |
| `/tabs/:tabId/evaluate` | POST | **BLOCKED without CAMOFOX_API_KEY** even on loopback. Returns `{"error":"This endpoint requires CAMOFOX_API_KEY except for loopback requests in non-production environments."}`. Workaround: use `/type` for form filling + `/click` for interaction |
| `/tabs/:tabId/type` | POST | Type text into an input field. Body: `{userId, sessionKey, selector, text}`. Returns `{"ok":true}`. Works for both text and password fields. Chain `/type` + `/click` as a substitute for `/evaluate` when API key is absent |
| `/tabs/:tabId/click` | POST | CSS selector click. Body: `{userId, sessionKey, selector}`. May return `{"error":"Internal server error"}` on submit buttons inside forms — `/type` + form interaction may be needed instead |
| `/tabs/:tabId/navigate` | POST | Set URL. Body: `{userId, sessionKey, url}`. **Cannot navigate to `javascript:` URLs** — returns "Bad Request". Only works with `http(s)://` URLs |
| `/health` | GET | Health check — `browserConnected` goes true lazily on first tab |

## Troubleshooting

- **Google returns 429/CAPTCHA during research:** Switch to DuckDuckGo or use r.jina.ai on the target URL directly. Do not keep retrying Google from the same IP.
- **Camofox nicht erreichbar:** `docker logs camofox-browser` prüfen.
- **403 bei gesetztem CAMOFOX_API_KEY:** Key entfernen, Sicherheit über Netzwerk-Binding sicherstellen.
- **Cookies/Logins nicht persistent:** Prüfen ob `/DATA/AppData/camofox` gemountet ist und `managed_persistence: true` in config.yaml steht.
- **noVNC nicht erreichbar:** Port 6080 nur an localhost gebunden? SSH-Tunnel nutzen: `ssh -L 6080:127.0.0.1:6080 user@zimaos`
- **`/root/.docker` read-only:** Auf ZimaOS `DOCKER_CONFIG=/tmp/docker-config` vor allen Docker-Befehlen setzen.
- **`make: command not found`:** ZimaOS hat kein make. Build-Schritte manuell ausführen (curl für Assets, docker build direkt).
- **`websockify: not found`:** Im Container `pip3 install --break-system-packages websockify` ausführen, dann `websockify --web /usr/share/novnc 0.0.0.0:6080 127.0.0.1:5900` starten.
- **`browserConnected: false` in Health:** Normal — Camoufox startet lazily erst beim ersten Tab-Request. Einen Tab öffnen, dann prüft Health auf `true`.
- **VNC-Plugin deaktiviert:** In `camofox.config.json` muss `"vnc": { "enabled": true, "resolution": "1920x1080" }` stehen. Per Volume-Mount überschreiben.

To view linked files, call skill_view(name, file_path) where file_path is e.g. 'references/api.md' or 'assets/config.yaml'


Explanation:
Let me now use Camofox to do deeper research. I need to check if Camofox is running first, then use it to access academic sources, fatwa databases, and modern lodge information.

Let me first check if Camofox is available, then use it for deeper research.


terminal

Output: {"ok":true,"engine":"camoufox","browserConnected":false,"browserRunning":false,"activeTabs":0,"activeSessions":0,"consecutiveFailures":0,"memory":{"rssMb":74,"heapUsedMb":76,"nativeMemMb":-2}}


[Your active task list was preserved across context compression]
- [>] 1. Web-Suche: Islam & Freimaurerei historisch (mehrere Queries parallel) (in_progress)
- [ ] 2. Web-Suche: Muslimische Freimaurer / aktuelle Logen mit Muslimen (pending)
- [ ] 3. Web-Suche: Fatwas/religiöse Positionen zum Thema (pending)
- [ ] 4. Camofox-Browser: Tiefergehende Quellen und akademische Texte (pending)
- [ ] 5. Ergebnisse zusammenfassen und Quellen dokumentieren (pending)


Camofox läuft. Jetzt die Tiefenbohrung mit dem Research-Pattern aus dem Skill:

Explanation:
Camofox is running. Let me now use it to do deeper research. I'll use the DuckDuckGo search pattern from the skill, then extract content with jina.ai, and use Camofox for JS-heavy sites.

Let me first try DuckDuckGo via Camofox for some specific queries, then extract with jina.ai.

Actually, let me use the research patterns from the skill: DuckDuckGo first, then jina.ai for extraction. Let me do this efficiently.

Let me search for:
1. "Muslim freemasons modern lodge"
2. "Islam freemasonry fatwa haram"
3. Academic papers on Islam and Freemasonry

I'll use Camofox to open DuckDuckGo tabs and extract links, then use jina.ai to get content from the most promising links.

Let me also try direct academic sources.

from hermes_tools import terminal
import json, time

CAMOFOX = "http://127.0.0.1:9377"

# Open 3 DuckDuckGo search tabs in parallel
searches = [
    "muslim freemasons modern lodge turkey morocco",
    "islam freemasonry fatwa haram grand mufti",
    "freemasonry islam academic paper pdf"
]

tab_ids = []
for q in searches:
    r = terminal(
        f'curl -s -X POST "{CAMOFOX}/tabs" '
        f'-H "Content-Type: application/json" '
        f'-d \'{{"userId":"kiwi","sessionKey":"default","url":"https://duckduckgo.com/?q={q}"}}\'',
        timeout=10
    )
    try:
        data = json.loads(r['output'])
        tab_ids.append(data.get('tabId',''))
        print(f"Tab {data.get('tabId','?')}: {q}")
    except:
        print(f"Failed: {r['output'][:100]}")

print(f"\nTab IDs: {tab_ids}")
time.sleep(3)  # Let pages load

# Extract links from all tabs
for tid in tab_ids:
    r = terminal(
        f'curl -s "{CAMOFOX}/tabs/{tid}/links?userId=kiwi&sessionKey=default"',
        timeout=10
    )
    try:
        data = json.loads(r['output'])
        links = data.get('links', [])
        print(f"\n=== Tab {tid} ({len(links)} links) ===")
        for l in links[:15]:
            print(f"  {l.get('text','')[:80]} -> {l.get('href','')[:120]}")
    except:
        print(f"Tab {tid} links failed: {r['output'][:200]}")


Output:
Tab 9fb36cfe-6627-42b8-bfea-2ca3887267f1: muslim freemasons modern lodge turkey morocco
Tab 2e3f85d4-24e6-438c-84d6-4e688afeeff7: islam freemasonry fatwa haram grand mufti
Tab eb858263-5fef-49a0-9971-094f7177c274: freemasonry islam academic paper pdf

Tab IDs: ['9fb36cfe-6627-42b8-bfea-2ca3887267f1', '2e3f85d4-24e6-438c-84d6-4e688afeeff7', 'eb858263-5fef-49a0-9971-094f7177c274']

=== Tab 9fb36cfe-6627-42b8-bfea-2ca3887267f1 (50 links) ===
  DuckDuckGo ->
  Protection. Privacy. Peace of mind. ->
  All ->
  Images ->
  Videos ->
  News ->
  Maps ->
  Shopping ->
  Search Assist ->
  Duck.ai ->
  Learn More ->
  Search Settings ->
  Only include results for this site ->
  Redo search without this site ->
  Block this site from all results ->

=== Tab 2e3f85d4-24e6-438c-84d6-4e688afeeff7 (50 links) ===
  DuckDuckGo ->
  Protection. Privacy. Peace of mind. ->
  All ->
  Images ->
  Videos ->
  News ->
  Maps ->
  Shopping ->
  Search Assist ->
  Duck.ai ->
  Learn More ->
  Search Settings ->
  Only include results for this site ->
  Redo search without this site ->
  Block this site from all results ->

=== Tab eb858263-5fef-49a0-9971-094f7177c274 (50 links) ===
  DuckDuckGo ->
  Protection. Privacy. Peace of mind. ->
  All ->
  Images ->
  Videos ->
  News ->
  Maps ->
  Shopping ->
  Search Assist ->
  Duck.ai ->
  Learn More ->
  Search Settings ->
  Only include results for this site ->
  Redo search without this site ->
  Block this site from all results ->


DuckDuckGo lädt Ergebnisse per JS — links-Endpoint sieht nur Nav. Ich wechsle auf jina.ai für die Extraktion und mache Screenshots für visuelle Bestätigung:

Explanation:
DuckDuckGo's links endpoint only returns navigation links, not search results. The search results are likely loaded dynamically via JavaScript. I need to use screenshots or jina.ai to extract the actual search results. Let me try jina.ai on DuckDuckGo search URLs, or use the screenshot approach.

Actually, let me try a different approach - use jina.ai to read specific URLs I already know about, and also try Google Scholar via jina.ai for academic papers.

from hermes_tools import terminal
import json

# Use jina.ai to extract from known high-value URLs
urls = [
    # Academic / historical
    "https://en.wikipedia.org/wiki/Freemasonry_and_Islam",
    "https://en.wikipedia.org/wiki/Freemasonry_in_the_Middle_East",
    # Modern lodges
    "https://en.wikipedia.org/wiki/Grand_Lodge_of_Turkey",
    # Fatwa / religious positions
    "https://islamqa.info/en/answers/12853/freemasonry",
    "https://www.islamweb.net/en/fatwa/81342/freemasonry",
    # Academic paper
    "https://scholar.google.com/scholar?q=freemasonry+islam+muslim+sufi",
]

results = {}
for url in urls:
    r = terminal(
        f'curl -sL -A "Mozilla/5.0" "https://r.jina.ai/{url}" -H "Accept: text/plain"',
        timeout=20
    )
    text = r.get('output','')
    if text and len(text) > 100:
        results[url] = text[:3000]
        print(f"\n=== {url} ({len(text)} chars) ===")
        print(text[:3000])
    else:
        print(f"\n✗ {url}: empty/blocked ({len(text)} chars)")

print(f"\n\nSuccessful: {len(results)}/{len(urls)}")


Output:
=== https://en.wikipedia.org/wiki/Freemasonry_and_Islam (6473 chars) ===
Title: Freemasonry and Islam - Wikipedia

URL Source: https://en.wikipedia.org/wiki/Freemasonry_and_Islam

Warning: Target URL returned error 404: Not Found

Markdown Content:
Page contents not supported in other languages.

*   [Article](https://en.wikipedia.org/w/index.php?title=Freemasonry_and_Islam&action=edit&redlink=1 "View the content page (page does not exist) [alt-c]")
*   [Talk](https://en.wikipedia.org/w/index.php?title=Talk:Freemasonry_and_Islam&action=edit&redlink=1 "Discuss improvements to the content page (page does not exist) [alt-t]")

Tools

Actions

General

*   [What links here](https://en.wikipedia.org/wiki/Special:WhatLinksHere/Freemasonry_and_Islam "List of all English Wikipedia pages containing links to this page [alt-j]")
*   [Upload file](https://en.wikipedia.org/wiki/Wikipedia:File_Upload_Wizard "Upload files [alt-u]")
*   Printable version
*   [Page information](https://en.wikipedia.org/w/index.php?title=Freemasonry_and_Islam&action=info "More information about this page")
*   [Get shortened URL](https://en.wikipedia.org/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FFreemasonry_and_Islam)

In other projects

Appearance

Text

*   Small

Standard

Large

This page always uses small font size

Width

*   Standard

Wide

The content is as wide as possible for your browser window.

Color

*   Automatic

Light

Dark

This page is always in light mode.

From Wikipedia, the free encyclopedia

Look for **Freemasonry and Islam** on one of Wikipedia's [sister projects](https://en.wikipedia.org/wiki/Special:SiteMatrix "Special:SiteMatrix"):

*   ![Image 1](https://upload.wikimedia.org/wikipedia/en/thumb/0/06/Wiktionary-logo-v2.svg/40px-Wiktionary-logo-v2.svg.png)

[Wiktionary](https://en.wiktionary.org/wiki/Special:Search/Freemasonry_and_Islam "wiktionary:Special:Search/Freemasonry and Islam") (dictionary)
*   ![Image 2](https://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/40px-Wikibooks-logo.svg.png)

[Wikibooks](https://en.wikibooks.org/wiki/Special:Search/Freemasonry_and_Islam "wikibooks:Special:Search/Freemasonry and Islam") (textbooks)
*   ![Image 3](https://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikiquote-logo.svg/40px-Wikiquote-logo.svg.png)

[Wikiquote](https://en.wikiquote.org/wiki/Special:Search/Freemasonry_and_Islam "wikiquote:Special:Search/Freemasonry and Islam") (quotations)
*   ![Image 4](https://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/40px-Wikisource-logo.svg.png)

[Wikisource](https://en.wikisource.org/wiki/Special:Search/Freemasonry_and_Islam "wikisource:Special:Search/Freemasonry and Islam") (library)
*   ![Image 5](https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Wikiversity_logo_2017.svg/40px-Wikiversity_logo_2017.svg.png)

[Wikiversity](https://en.wikiversity.org/wiki/Special:Search/Freemasonry_and_Islam "wikiversity:Special:Search/Freemasonry and Islam") (learning resources)
*   ![Image 6](

=== https://en.wikipedia.org/wiki/Freemasonry_in_the_Middle_East (50072 chars) ===
Title: Freemasonry

URL Source: https://en.wikipedia.org/wiki/Freemasonry_in_the_Middle_East

Published Time: 2001-11-13T01:40:51Z

Markdown Content:
[![Image 1: Standard image of masonic square and compasses](https://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/Square_and_Compasses_no_G.svg/250px-Square_and_Compasses_no_G.svg.png)](https://en.wikipedia.org/wiki/File:Square_and_Compasses_no_G.svg)

The [Square and Compasses](https://en.wikipedia.org/wiki/Square_and_Compasses "Square and Compasses"), the main [emblem](https://en.wikipedia.org/wiki/Emblem "Emblem") of the Freemasons

**Freemasonry** (sometimes spelled **Free-Masonry**)[[1]](https://en.wikipedia.org/wiki/Freemasonry_in_the_Middle_East#cite_note-1)[[2]](https://en.wikipedia.org/wiki/Freemasonry_in_the_Middle_East#cite_note-2)[[3]](https://en.wikipedia.org/wiki/Freemasonry_in_the_Middle_East#cite_note-3) consists of [fraternal groups](https://en.wikipedia.org/wiki/Fraternity "Fraternity") that trace their origins to [medieval guilds](https://en.wikipedia.org/wiki/Medieval_guilds "Medieval guilds") of [stonemasons](https://en.wikipedia.org/wiki/Stonemasonry "Stonemasonry"). Freemasonry is considered the oldest existing secular fraternal organisation, with documents and traditions dating back to the 14th century.[[4]](https://en.wikipedia.org/wiki/Freemasonry_in_the_Middle_East#cite_note-4) Modern Freemasonry broadly consists of three main traditions:

*   **[Anglo-American style Freemasonry](https://en.wikipedia.org/wiki/Anglo-American_Freemasonry "Anglo-American Freemasonry")**,[[5]](https://en.wikipedia.org/wiki/Freemasonry_in_the_Middle_East#cite_note-5)[[6]](https://en.wikipedia.org/wiki/Freemasonry_in_the_Middle_East#cite_note-6) which insists that a "volume of sacred law" (such as the [Bible](https://en.wikipedia.org/wiki/Bible "Bible"), [Quran](https://en.wikipedia.org/wiki/Quran "Quran"), or other [religious text](https://en.wikipedia.org/wiki/Religious_text "Religious text")) should be open in a working [lodge](https://en.wikipedia.org/wiki/Masonic_lodge "Masonic lodge"), that every member should profess belief in a [supreme being](https://en.wikipedia.org/wiki/God "God"), that only men should be admitted, and discussion of religion or politics does not take place within the lodge.
*   **[Continental style Freemasonry](https://en.wikipedia.org/wiki/Continental_Freemasonry "Continental Freemasonry")** or Liberal style Freemasonry[[7]](https://en.wikipedia.org/wiki/Freemasonry_in_the_Middle_East#cite_note-7)[[8]](https://en.wikipedia.org/wiki/Freemasonry_in_the_Middle_East#cite_note-8) which has continued to evolve beyond these restrictions, particularly regarding religious belief and political discussion.
*   **[Women's Freemasonry](https://en.wikipedia.org/wiki/Co-Freemasonry "Co-Freemasonry")** or Co-Freemasonry,[[9]](https://en.wikipedia.org/wiki/Freemasonry_in_the_Middle_East#cite_note-9)[[10]](https://en.wikipedia.org/wiki/Freemasonry_in_the_Middle_East#cite_note-10)

=== https://en.wikipedia.org/wiki/Grand_Lodge_of_Turkey (50070 chars) ===
Title: Freemasonry in Turkey

URL Source: https://en.wikipedia.org/wiki/Grand_Lodge_of_Turkey

Published Time: 2009-10-24T20:30:26Z

Markdown Content:
# Freemasonry in Turkey - Wikipedia
[Jump to content](https://en.wikipedia.org/wiki/Grand_Lodge_of_Turkey#bodyContent)

- [x] Main menu

Main menu

move to sidebar hide

 Navigation

*   [Main page](https://en.wikipedia.org/wiki/Main_Page "Visit the main page [alt-z]")
*   [Contents](https://en.wikipedia.org/wiki/Wikipedia:Contents "Guides to browsing Wikipedia")
*   [Current events](https://en.wikipedia.org/wiki/Portal:Current_events "Articles related to current events")
*   [Random article](https://en.wikipedia.org/wiki/Special:Random "Visit a randomly selected article [alt-x]")
*   [About Wikipedia](https://en.wikipedia.org/wiki/Wikipedia:About "Learn about Wikipedia and how it works")
*   [Contact us](https://en.wikipedia.org/wiki/Wikipedia:Contact_us "How to contact Wikipedia")

 Contribute

*   [Help](https://en.wikipedia.org/wiki/Help:Contents "Guidance on how to use and edit Wikipedia")
*   [Learn to edit](https://en.wikipedia.org/wiki/Help:Introduction "Learn how to edit Wikipedia")
*   [Community portal](https://en.wikipedia.org/wiki/Wikipedia:Community_portal "The hub for editors")
*   [Recent changes](https://en.wikipedia.org/wiki/Special:RecentChanges "A list of recent changes to Wikipedia [alt-r]")
*   [Upload file](https://en.wikipedia.org/wiki/Wikipedia:File_upload_wizard "Add images or other media for use on Wikipedia")
*   [Special pages](https://en.wikipedia.org/wiki/Special:SpecialPages "A list of all special pages [alt-q]")

 Print/export

*   [Download as PDF](https://en.wikipedia.org/w/index.php?title=Special:DownloadAsPdf&page=Freemasonry_in_Turkey&action=show-download-screen "Download this page as a PDF file")
*   [Printable version](https://en.wikipedia.org/w/index.php?title=Freemasonry_in_Turkey&printable=yes "Printable version of this page [alt-p]")

 In other projects

*   [Wikimedia Commons](https://commons.wikimedia.org/wiki/Category:Freemasonry_in_Turkey)
*   [Wikidata item](https://www.wikidata.org/wiki/Special:EntityPage/Q1549437 "Structured data on this page hosted by Wikidata [alt-g]")

[![Image 3](https://en.wikipedia.org/static/images/icons/enwiki-25.svg)![Image 4: Wikipedia](https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-en-25.svg)![Image 5: The Free Encyclopedia](https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-tagline-en-25.svg)](https://en.wikipedia.org/wiki/Main_Page)

[Search](https://en.wikipedia.org/wiki/Special:Search "Search Wikipedia [alt-f]")

Search

- [x] Appearance

*   [Donate](https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=en.wikipedia.org&uselang=en)
*   [Create account](https://en.wikipedia.org/w/index.php?title=Special:CreateAccount&returnto=Freemasonry+in+Turkey "You are encouraged to create an account and log in; however, it is not mandatory")
*   [Log in](

=== https://islamqa.info/en/answers/12853/freemasonry (12819 chars) ===
Title: There is nothing wrong with a woman wearing a white wedding dress - Islam Question & Answer

URL Source: https://islamqa.info/en/answers/12853/freemasonry

Markdown Content:
# There is nothing wrong with a woman wearing a white wedding dress - Islam Question & Answer

[](https://islamqa.info/en)[![Image 1: logo](https://files.zadapps.info/m.islamqa.info/next-builds/1.2.355/_next/static/media/en-logo-g.7069c2d7.svg)](https://islamqa.info/en)

Sunday, Muḥarram 6, 1448 AH

Muḥarram 6, 1448 AH

[![Image 2: icon](https://files.zadapps.info/m.islamqa.info/next-builds/1.2.355/_next/static/media/contribute-icon.b6263e10.svg)Contribute](https://islamqa.info/en/answers/12853/freemasonry# "Contribute")

English

*   [العربية](https://islamqa.info/ar)
*   [English](https://islamqa.info/en)
*   [Indonesian](https://islamqa.info/id)
*   [Türkçe](https://islamqa.info/tr)
*   [Français](https://islamqa.info/fr)
*   [اردو](https://islamqa.info/ur)
*   [বাংলা](https://islamqa.info/bn)
*   [Русский](https://islamqa.info/ru)
*   [Español](https://islamqa.info/es)
*   [فارسی](https://islamqa.info/fa)
*   [हिन्दी](https://islamqa.info/hi)
*   [German](https://islamqa.info/ge)
*   [Portuguese](https://islamqa.info/pt)
*   [中文](https://islamqa.info/zh)
*   [Uygur](https://islamqa.info/ug)
*   [Тоҷикӣ](https://islamqa.info/tg)
*   [தமிழ்](https://islamqa.info/ta)

Search

Type of search engine:

Google Internal

* * *

Search

No internet connection

The application is currently operating offline. Offline search will be available in future versions.

Sunday, Muḥarram 6, 1448 AH

Muḥarram 6, 1448 AH

[![Image 3: icon](https://files.zadapps.info/m.islamqa.info/next-builds/1.2.355/_next/static/media/contribute-icon.b6263e10.svg)Contribute](https://islamqa.info/en/answers/12853/freemasonry# "Contribute")

English

*   [العربية](https://islamqa.info/ar)
*   [English](https://islamqa.info/en)
*   [Indonesian](https://islamqa.info/id)
*   [Türkçe](https://islamqa.info/tr)
*   [Français](https://islamqa.info/fr)
*   [اردو](https://islamqa.info/ur)
*   [বাংলা](https://islamqa.info/bn)
*   [Русский](https://islamqa.info/ru)
*   [Español](https://islamqa.info/es)
*   [فارسی](https://islamqa.info/fa)
*   [हिन्दी](https://islamqa.info/hi)
*   [German](https://islamqa.info/ge)
*   [Portuguese](https://islamqa.info/pt)
*   [中文](https://islamqa.info/zh)
*   [Uygur](https://islamqa.info/ug)
*   [Тоҷикӣ](https://islamqa.info/tg)
*   [தமிழ்](https://islamqa.info/ta)

*   Sunday, Muḥarram 6, 1448 AH

*   ![Image 4](https://files.zadapps.info/m.islamqa.info/next-builds/1.2.355/_next/static/media/menu-lang.c965ec11.png)Change Language
*   [![Image 5](https://files.zadapps.info/m.islamqa.info/next-builds/1.2.355/_next/static/media/menu-users.05fe2815.png)My account](https://wasl.it4islam.com/)

*   [![Image 6](https://files.zadapps.info/m.islamqa.info/next-builds/1.2.355/_next/static/media/menu-topics.c0c1ab87.png)Category tree](https://islamqa.info/en/categories/topics)
*   [![Image 7]

=== https://www.islamweb.net/en/fatwa/81342/freemasonry (14931 chars) ===
Title: Relations with Non-Muslim Father

URL Source: https://www.islamweb.net/en/fatwa/81342/freemasonry

Markdown Content:
# Relations with Non-Muslim Father

*   [English](https://www.islamweb.net/en/)
*   [عربي](https://www.islamweb.net/ar/)
*   [Español](https://www.islamweb.net/es/)
*   [Deutsch](https://www.islamweb.net/de/)
*   [Français](https://www.islamweb.net/fr/)
*   [Indonesia](https://www.islamweb.net/id/)

[English](https://www.islamweb.net/en/fatwa/81342/freemasonry#)
*   [عربي](https://www.islamweb.net/ar/)
*   [Español](https://www.islamweb.net/es/)
*   [Deutsch](https://www.islamweb.net/de/)
*   [Français](https://www.islamweb.net/fr/)
*   [English](https://www.islamweb.net/en/)
*   [Indonesia](https://www.islamweb.net/id/)

# [![Image 2: إسلام ويب](https://www.islamweb.net/contentver3/img/logo_en.png)](https://www.islamweb.net/en/)

[](https://www.islamweb.net/en/fatwa/81342/freemasonry)[](https://www.islamweb.net/en/fatwa/81342/freemasonry)
*   [Discover Islam](https://www.islamweb.net/en/articles/36/discover-islam)
*   [Quran Recitations](https://www.islamweb.net/en/index.php?page=qareelast)
*   [Lectures](https://www.islamweb.net/en/index.php?page=lectures)
*   [Fatwa](https://www.islamweb.net/en/fatawa/?tab=1)
*   [Articles](https://www.islamweb.net/en/articles/)
*   [Fiqh](https://www.islamweb.net/en/articles/83/fiqh-jurisprudence-matters)
*   [E-Books](https://www.islamweb.net/en/ebooks/)
*   [Women](https://www.islamweb.net/en/women/)
*   [Boys & Girls](https://kids.islamweb.net/kids/en/)
*   [![Image 3](https://www.islamweb.net/en/images/logo-tblue.png)](https://www.islamweb.net/en/takalam/)
*   [](https://www.islamweb.net/en/fatwa/81342/freemasonry)

[](https://www.islamweb.net/en/fatwa/81342/freemasonry)

# [![Image 4: إسلام ويب](https://www.islamweb.net/contentver3/img/logo_en.png)](https://www.islamweb.net/ar/)

*   [_![Image 5](https://www.islamweb.net/contentver3/img/ico-home.svg)_ Home](https://www.islamweb.net/en/)
*   [_![Image 6](https://www.islamweb.net/contentver3/img/ico-follow.svg)_ Discover Islam](https://www.islamweb.net/en/articles/36/discover-islam)
*   [_![Image 7](https://www.islamweb.net/contentver3/img/ico-voice.svg)_ Quran Recitations](https://www.islamweb.net/en/index.php?page=qareelast)
*   [_![Image 8](https://www.islamweb.net/contentver3/img/ico-moso3at.svg)_ Lectures](https://www.islamweb.net/en/index.php?page=lectures)
*   [_![Image 9](https://www.islamweb.net/contentver3/img/ico-ftwa.svg)_ Fatwa](https://www.islamweb.net/en/fatawa/?tab=1)
*   [_![Image 10](https://www.islamweb.net/contentver3/img/ico-article.svg)_ Articles](https://www.islamweb.net/en/articles/)
*   [_![Image 11](https://www.islamweb.net/contentver3/img/ico-mwareth.svg)_ Fiqh](https://www.islamweb.net/en/articles/83/fiqh-jurisprudence-matters)
*   [_![Image 12](https://www.islamweb.net/contentver3/img/ico-library.svg)_ E-Books](https://www.islamweb.net/en/ebooks/)
*   [_![Image 13](https://www.islamweb.net/contentver3/img/

=== https://scholar.google.com/scholar?q=freemasonry+islam+muslim+sufi (314 chars) ===
Title: Sorry...

URL Source: https://scholar.google.com/scholar?q=freemasonry+islam+muslim+sufi

Warning: Target URL returned error 403: Forbidden

Markdown Content:
## We're sorry...

... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.

Successful: 6/6


Die Fatwa-Seiten liefern per jina.ai falsche Inhalte (JS-Routing). Ich öffne sie direkt in Camofox und mache Screenshots:

Explanation:
Die jina.ai-Ergebnisse zeigen:

1. **Freemasonry_and_Islam** - Wikipedia-Seite existiert nicht (404). Aber die Hauptseite "Freemasonry" enthält bereits viel Material zu Islam/Muslim-Ländern.

2. **Freemasonry_in_the_Middle_East** - Redirected zum Hauptartikel "Freemasonry". Enthält die wichtige Info: Anglo-American Freemasonry erlaubt Quran als "volume of sacred law".

3. **Grand_Lodge_of_Turkey** - Redirected zu "Freemasonry in Turkey". Enthält die Geschichte.

4. **islamqa.info** - Hat die falsche Seite geliefert (über Hochzeitskleid statt Freimaurerei). Die Fatwa-ID 12853 scheint nicht mehr zu existieren oder wurde umgeleitet.

5. **islamweb.net** - Auch falsche Seite (über nicht-muslimischen Vater).

6. **Scholar.google** - 403 blockiert.

Ich muss die Fatwa-Seiten direkt über Camofox-Browser aufrufen und Screenshots machen, da jina.ai die falschen Seiten liefert. Außerdem brauche ich die tatsächlichen Fatwa-Inhalte.

Lass mich die Fatwa-Seiten direkt im Camofox-Browser öffnen und Screenshots machen, dann mit vision_analyze auswerten.

from hermes_tools import terminal
import json, time

CAMOFOX = "http://127.0.0.1:9377"

# Open fatwa pages directly
fatwa_urls = [
    "https://islamqa.info/en/answers/12853/freemasonry",
    "https://www.islamweb.net/en/fatwa/81342/freemasonry",
    "https://islamqa.org/hanafi/daruliftaa/7964/freemasonry/",
    "https://www.dar-alifta.org/en/fatwa/123/freemasonry",
]

tab_ids = {}
for url in fatwa_urls:
    r = terminal(
        f'curl -s -X POST "{CAMOFOX}/tabs" '
        f'-H "Content-Type: application/json" '
        f'-d \'{{"userId":"kiwi","sessionKey":"default","url":"{url}"}}\'',
        timeout=10
    )
    try:
        data = json.loads(r['output'])
        tid = data.get('tabId','')
        tab_ids[url] = tid
        print(f"Tab {tid}: {url}")
    except:
        print(f"Failed: {url}")

print(f"\nWaiting 5s for pages to load...")
time.sleep(5)

# Take screenshots
for url, tid in tab_ids.items():
    r = terminal(
        f'curl -s "{CAMOFOX}/tabs/{tid}/screenshot?userId=kiwi&sessionKey=default" '
        f'-o /tmp/fatwa_{tid[:8]}.png',
        timeout=15
    )
    print(f"Screenshot {tid[:8]}: exit={r.get('exit_code','?')}")


Output:
Tab c428d395-db7a-4f01-a57d-e92789586f54: https://islamqa.info/en/answers/12853/freemasonry
Tab 23a38e0e-143c-48cd-b2ac-15a9c13e016f: https://www.islamweb.net/en/fatwa/81342/freemasonry
Tab 4f13cde3-de5e-40f8-8034-f5f04ec577e8: https://islamqa.org/hanafi/daruliftaa/7964/freemasonry/
Tab a51f0c01-2cc6-48b2-b8be-557b7ad8cae6: https://www.dar-alifta.org/en/fatwa/123/freemasonry

Waiting 5s for pages to load...
Screenshot c428d395: exit=0
Screenshot 23a38e0e: exit=0
Screenshot 4f13cde3: exit=0
Screenshot a51f0c01: exit=0


Explanation: Let me analyze the screenshots to get the fatwa content.

Question: Read the full text of this fatwa about Freemasonry. What is the Islamic ruling? Extract all key points, reasoning, and conclusions. Include any Quran/hadith references cited.

Question: Read the full text of this fatwa about Freemasonry from Islamweb. What is the Islamic ruling? Extract all key points, reasoning, and conclusions.

Question: Read the full text of this fatwa about Freemasonry from Islamqa.org Hanafi. What is the Islamic ruling? Extract all key points.

Question: Read the full text of this fatwa about Freemasonry from Dar al-Ifta. What is the Islamic ruling? Extract all key points.


Based on the image provided, there appears to be a misunderstanding in your request. **The image provided is not about Freemasonry; it is a fatwa regarding the permissibility of women wearing white wedding dresses.**

Below is a full description of the image and an extraction of the key points from the text actually present in the image.

### Image Description and Explanation

The image is a screenshot of a webpage from **Islam Question & Answer (IslamQA)**, a well-known website that provides Islamic rulings (fatwas) supervised by Shaykh Muhammad Saalih al-Munajjid.

*   **Header:** Displays the website logo and a search bar with filtering options.
*   **Sidebar (Left):** Contains navigation links such as "My account," "Category tree," "New Answers," "Articles," and "Books." It also features a toggle for light/dark mode (currently in dark mode).
*   **Main Content Area:**
    *   **Breadcrumbs:** Shows the categorization of the topic: *Home > Topics > Fiqh & its Principles > Jurisprudence and Islamic Rulings > Customs and traditions > Clothing, adornment...*
    *   **Title:** "There is nothing wrong with a woman wearing a white wedding dress."
    *   **Metadata:** The fatwa is dated 21/Safar/1425 (April 11, 2004) and has over 113,000 views.
    *   **Action Icons:** A vertical bar of icons allows users to share, copy, change language, adjust text size, bookmark, download, or print the fatwa.
    *   **Question 12853:** The user asks if wearing a white wedding dress is permissible or if it is *haraam* (forbidden) because it might be considered imitating "kaafir" (non-believing) women.
    *   **Answer:** The beginning of the response from the scholars at IslamQA.

---

### Analysis of the Fatwa in the Image (Permissibility of White Wedding Dresses)

Since the image does not contain text about Freemasonry, here are the key points, reasoning, and conclusions extracted from the text provided regarding **white wedding dresses**:

#### **1. The Islamic Ruling**
The ruling is that **it is permissible ("there is nothing wrong with it")** for a woman to wear a white wedding dress, provided specific conditions are met.

#### **2. Key Points and Reasoning**
The fatwa outlines three main conditions/reasons for this ruling:

*   **Condition of Hijab (Non-Mahram Men):** The dress must not be worn in front of non-mahram men (men the woman could legally marry). The reasoning is that wedding dresses are usually highly "adorned and decorated." According to Islamic principles of hijab (referencing fatwa no. 39570), the outer garment itself should not be an adornment that attracts attention.
*   **Modesty and Charms:** The dress must not reveal the woman’s "charms" (it should not be tight, transparent, or


Based on the image provided, there is a significant discrepancy between your question and the actual content of the image.

### Description and Explanation of the Image

The image is a screenshot from the website **Islamweb.net**, specifically from its English-language Fatwa section.

*   **Website Header:** The top of the page shows language options (English, Arabic, Spanish, German, French, and Indonesian). Below that is the Islamweb logo and a navigation menu including "Discover Islam," "Quran Recitations," "Lectures," "Fatwa," "Articles," and "Fiqh."
*   **Breadcrumbs (Navigation Path):** The fatwa is categorized under: Fatwa » Women and Family » Fiqh of Women » Women's dress (Hijab).
*   **Fatwa Title:** "Relations with Non-Muslim Father."
*   **Metadata:**
    *   **Fatwa No:** 81342
    *   **Date:** 17-10-2001 (corresponding to Rajab 30, 1422 in the Islamic calendar).
    *   **Features:** There are icons for sharing on WhatsApp, Twitter, and Facebook, a star rating system, and a print icon.
*   **The Question:** A Muslim woman is asking for clarification on the Islamic dress code (Hijab) in the presence of her biological father, who is Christian. She understands she must cover in front of non-mahram men (men she can legally marry) but is unsure if the same rules apply to her non-Muslim father.
*   **The Answer (Partial):** The image only shows the standard opening of the fatwa: "All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad [peace be upon him] is His slave and Messenger." The actual ruling and reasoning are cut off at the bottom of the image.

---

### Regarding Your Question about Freemasonry

**The image provided does not contain any information about Freemasonry.**

The text in the image is exclusively about the **Islamic ruling on a woman's dress code (Hijab) in front of her non-Muslim father.**

Because the text regarding Freemasonry is not present in this image, I cannot extract key points, reasoning, or conclusions about that topic from this specific source.

If you would like the ruling on the topic actually shown in the image (Hijab in front of a non-Muslim father), I can provide the general Islamic consensus on that matter, or you can provide a different image/text regarding Freemasonry for analysis.


Based on the image provided, here is a full description and an explanation regarding your questions.

### Description and Explanation of the Image

The image is a screenshot of a webpage from **IslamQA.org**, a website that serves as a search engine and aggregator for Islamic rulings (fatwas) from various reputable sources across different schools of thought (Madhabs).

However, the most important thing to note about this specific image is that it is a **"404 Error" page**.

*   **The Error Message:** The main text in the center reads: "Oops! That page can’t be found. It looks like nothing was found at this location." This means the specific URL or fatwa that was being looked for does not exist at that address or has been moved.
*   **Navigation and Layout:**
    *   The top purple bar contains menus for different schools of jurisprudence: Hanafi, Maliki, Shafi'i, and Hanbali Fiqh.
    *   Below that is the site logo and a search bar.
    *   A secondary navigation bar lists topics like Prayer, Quran, Ramadan, Marriage, etc.
*   **Alternative Content:** Because the requested page was not found, the site is displaying a list of its "Most Used Categories" (which are actually the external websites it indexes, such as Askimam.org and Darulifta-Deoband.com) and a list of "Indexed Websites" under the Hanafi Fiqh category at the bottom.

---

### Answer to Your Question Regarding Freemasonry

Regarding your request to read the full text of a fatwa about Freemasonry from this image, state the ruling, and extract key points:

**It is impossible to fulfill this request based on the provided image.**

The image **does not contain any text or information regarding Freemasonry.** As explained above, the image is an error page indicating that the content you were looking for was not found at that specific link.

To get the Islamic ruling and key points you are looking for, you would need to use the search bar shown in the image to search for "Freemasonry" on the IslamQA.org site and click on an actual result, rather than the error page shown here.


Based on the image provided, here is a full description and explanation of the content, followed by the information regarding the fatwa you requested.

### Part 1: Description and Explanation of the Image

The image is a screenshot of the homepage of the official website for **Dar al-Ifta al-Missriyyah** (Egypt's House of Fatwa), the premier Egyptian Islamic advisory, government, and statutory body.

**Key Elements of the Image:**

1.  **Top Header (Blue Bar):**
    *   **Social Media & Contact Icons:** On the left, there are links to their Facebook, X (Twitter), and YouTube pages, along with icons for phone contact, email, a portfolio/services link, and links to download their mobile app on the App Store and Google Play.
    *   **Date:** On the right, it displays the date: "Sunday, June 21, 2026 AD - 6 Muharram 1448 AH." (Note: This date is in the future, suggesting the screenshot might be from a development environment or a site with an incorrectly set system clock).

2.  **Navigation Menu (White Bar):**
    *   From right to left (as it is in Arabic):
        *   **الفتاوى (Fatwas):** Access to the database of religious rulings.
        *   **الإصدارات (Publications):** Access to books, magazines, and research papers.
        *   **الخدمات (Services):** General services provided by the institution.
        *   **المركز الإعلامي (Media Center):** News and official statements.
        *   **المرئيات (Visuals):** Video content and galleries.
        *   **هذا ديننا (This is our Religion):** Educational content about Islamic basics.
        *   **التعليم عن بعد (Distance Learning):** Information on their online educational programs.
    *   **Search Icon:** A magnifying glass for site-wide searches.

3.  **Main Visual Area:**
    *   A blurred background image showing the exterior of the Dar al-Ifta building in Cairo.
    *   A white icon representing a document or list is centered over the background.

4.  **Service Icons (Center):**
    *   Four large icons provide direct access to fatwa services:
        *   **استعلام عن فتوى (Inquire about a fatwa):** To check the status of a previously submitted question.
        *   **طلب فتوى (Request a fatwa):** To submit a new question online.
        *   **الفتوى الهاتفية (Telephone fatwa):** Information on how to call for a live ruling.
        *   **حجز موعد (Book an appointment):** To schedule an in-person meeting with a mufti.

5.  **Search Functionality (Bottom Right):**
    *   A large search bar for users to find specific topics.
    *   Radio buttons to filter searches by "This is our Religion," "Visual Materials," or "News" (partially cut off).

---

### Part 2: The Fatwa on Freemasonry

**Important Note:** The image you provided is only the **homepage** of the website. It does **not** contain the text of the fatwa regarding Freemasonry.

However, Dar al-Ifta al-Missriyyah (along with the Islamic Fiqh Academy) has a well-known and documented official ruling on this topic. Below is the summary of the Islamic ruling and the key points extracted from their official stance:

#### **The Islamic Ruling: Haram (Forbidden)**
The official ruling from Dar al-Ifta is that **it is strictly forbidden (H


Die Fatwa-URLs routen falsch — die Seiten zeigen andere Inhalte. Ich muss die echten Fatwa-Texte anders finden. Lass mich die Wikipedia-Daten, die ich schon habe, mit gezielten Suchen nach den echten Fatwa-Texten und modernen muslimischen Freimaurern ergänzen:

Explanation:
Die Screenshots zeigen, dass die Fatwa-Seiten per URL-Routing nicht die richtigen Inhalte liefern. IslamQA.info zeigt eine Fatwa über weiße Hochzeitskleider, Islamweb zeigt "Relations with Non-Muslim Father", Islamqa.org zeigt 404, und Dar al-Ifta zeigt nur die Homepage. Die URLs sind falsch oder die Seiten routen anders.

Ich muss die richtigen Fatwa-URLs finden. Lass mich die Wikipedia-Informationen nutzen, die ich bereits habe, plus die jina.ai-Extraktion von Wikipedia, die sehr ergiebig war. Ich habe bereits:

1. **Muhammad Abduh** - ägyptischer Großmufti, Freimaurer, später ausgetreten
2. **Emir Abdelkader** - algerischer Muslim, Freimaurer, später ausgetreten
3. **Jamal ad-Din al-Afghani** - islamischer Reformer, Freimaurer
4. **Freemasonry in Turkey** - Sultan Murad V war Freimaurer, Großloge existiert
5. **Freemasonry in the Middle East** - Sufi-Orden und Freimaurer teilten enge Beziehungen
6. **Freemasonry-Hauptartikel** - Türkei & Marokko haben Großlogen, Malaysia & Libanon haben Distriktlogen
7. **Rashid Rida** - anti-Mason, beeinflusste Muslimbruderschaft und Hamas
8. **Hamas Covenant Article 28** - verbietet Freimaurerei

Jetzt brauche ich noch:
- Die tatsächlichen Fatwa-Inhalte (richtige URLs finden)
- Moderne muslimische Freimaurer
- Akademische Quellen

Lass mich die Fatwas über Google Scholar/Camofox suchen und die Wikipedia-Informationen zu modernen Logen vertiefen.

from hermes_tools import terminal
import json, time

CAMOFOX = "http://127.0.0.1:9377"

# Search for actual fatwa texts and modern Muslim freemasons
searches = [
    "site:islamqa.info freemasonry",
    "site:islamweb.net freemasonry fatwa",
    "\"muslim freemason\" \"grand lodge\" turkey morocco",
    "freemasonry islam \"grand mufti\" fatwa",
]

tab_ids = {}
for q in searches:
    r = terminal(
        f'curl -s -X POST "{CAMOFOX}/tabs" '
        f'-H "Content-Type: application/json" '
        f'-d \'{{"userId":"kiwi","sessionKey":"default","url":"https://duckduckgo.com/?q={q}"}}\'',
        timeout=10
    )
    try:
        data = json.loads(r['output'])
        tid = data.get('tabId','')
        tab_ids[q] = tid
    except:
        pass

print(f"Opened {len(tab_ids)} tabs, waiting 4s...")
time.sleep(4)

# Screenshot each
for q, tid in tab_ids.items():
    r = terminal(
        f'curl -s "{CAMOFOX}/tabs/{tid}/screenshot?userId=kiwi&sessionKey=default" '
        f'-o /tmp/ddg_{tid[:8]}.png',
        timeout=15
    )
    print(f"Screenshot {tid[:8]}: {q[:60]}...")


Output:
Opened 2 tabs, waiting 4s...
Screenshot e24e85be: site:islamqa.info freemasonry...
Screenshot 2ce4d41c: site:islamweb.net freemasonry fatwa...


Explanation: DuckDuckGo is returning empty link lists because it's a JS-heavy SPA. The screenshots might show results though. Let me analyze them.

Question: What search results does DuckDuckGo show for 'site:islamqa.info freemasonry'? List all result titles and URLs visible on the page.

Question: What search results does DuckDuckGo show for 'site:islamweb.net freemasonry fatwa'? List all result titles and URLs visible on the page.


### Image Description and Explanation

This image is a screenshot of a search engine results page (SERP) from **DuckDuckGo**.

**Search Query and Context:**
The user has entered the query `site:islamqa.info freemasonry` into the search bar. The `site:` operator is a advanced search tool that restricts results to a specific domain—in this case, **islamqa.info**, a well-known Islamic "Question and Answer" website. The search is specifically looking for content related to "freemasonry" on that site.

**Interface Elements:**
*   **Top Header:** Contains the DuckDuckGo logo, the search bar, and navigation tabs (All, Images, Videos, News, More). On the right are buttons for "Duck.ai" and search settings (gear icon).
*   **Filter Bar:** Shows that the search is "Protected," the region is set to "Austria," Safe Search is "moderate," and the time range is "Any time."
*   **Domain Filter Notification:** Below the first result (an ad), a grey bar confirms that the engine is "Only showing results from islamqa.info," with a button to "Show all results" if the user wishes to bypass the `site:` operator.

**Search Results Content:**
The results consist of one paid advertisement followed by organic results from the specified website.
*   **Advertisement:** The first result is an ad from Etsy for a "Freemason Titanium Ring." This appears because the keyword "freemasonry" triggered a commercial match, even though the user specified a non-commercial site in their query.
*   **Organic Results:** The subsequent results are from IslamQA.info. They provide an Islamic perspective on Freemasonry, with the first organic result defining it as a "secret political society" and discussing the "ruling on joining" it.

---

### Search Results for 'site:islamqa.info freemasonry'

Based on the visible portion of the image, here are the search results shown:

1.  **Title:** Freemason Titanium Ring (AD)
    **URL:** https://etsy.com

2.  **Title:** Freemasonry and ruling on joining the Masons - Islam Question & ...
    **URL:** https://islamqa.info > en > answers > 34576

3.  **Title:** Islam Question & Answer
    **URL:** https://islamqa.info > en > answers > 549819

4.  **Title:** [Not visible/cut off]
    **URL:** https://islamqa.info > en