Hanuman Dham, a revered shrine in Shamli district, has issued guidelines for a dress code for devotees.
A poster put up at the entrance, urges visitors to adhere to the prescribed dress code.
"Individuals wearing short clothes, half pants, bermudas, miniskirts, nightwear and ripped jeans will be denied entry into the temple premises," the notice says.
Salil Dwivedi, chief priest and head of the temple committee, said that "The decision aligns with the longstanding traditions followed in temples since years."
Dwivedi said that the decision had been taken to stop people from treating temples as picnic spots. He said that this decision was reached after careful consideration.
Similar restrictions regarding the dress code of pilgrims have been imposed in temples in Aligarh, Mathura and Muzaffarnagar.