Smartphone photography is tolerated in outer areas but restricted during نمازs, prohibited in the Rawdah, and professional cameras and drones are banned.
Photography rules inside the two holy مسجدs have evolved. Currently, casual smartphone photography is tolerated in outer courtyards and non-نماز areas. Taking a photo of the کعبۃ اللہ from upper floors is common. However, during active نماز times, photography is discouraged.
Restrictions: professional cameras and tripods are not permitted. The Rawdah in مدینہ منورہ strictly prohibits photography. Video recording of other worshippers without consent is prohibited. Drone photography is absolutely prohibited and a serious legal offense.
From an etiquette perspective, scholars advise moderation. The primary purpose is spiritual devotion, not content creation. Take a few meaningful photos during non-نماز times and then put your phone away to focus on worship.