TEHRAN — Burning American flags and homemade effigies of American presidents is a cherished tradition among Iranian hard-liners, but as the country prepares for the anniversary on Friday of the 1979 revolution that established the Islamic republic, others want to thank Americans instead.

President Trump’s executive order barring travelers from Iran and six other largely Muslim countries has prompted a backlash in the United States, including challenges in federal court.

Iranians have taken notice.

“We thank Americans who stood up for the seven countries blocked from entering the US by the new travel ban,” one popular Iranian Twitter account stated, with the hashtag #LoveBeyondFlags.

The Twitter user added that the theme of #LoveBeyondFlags resonated from the Azadi Tower, a landmark at the western entrance of Tehran, to the Statue of Liberty in New York. The tower’s name can be translated as “freedom.”