This is something more travelers should think about, honestly. Posting photos of identifiable strangers can be a real problem in countries with strict privacy or image-rights laws, and even where legal, it can embarrass or endanger the person, particularly women in conservative societies or people photographed in vulnerable situations.
Religious sites add another layer. A photo that seems harmless to you, like posing playfully in front of a temple or wearing beachwear near a mosque, can cause genuine offence and occasionally goes viral for the wrong reasons. Some countries have penalized tourists for disrespectful photos at sacred or memorial sites.
A few sensible habits: avoid posting close-ups of strangers without consent, be careful with photos of children, skip geotagging private homes or people's businesses, and never post images mocking religious practices or national symbols. Also be aware that in a handful of countries, social media posts criticizing the government or religion can create legal risk even for visitors. When in doubt, keep it in your personal album.