The 19-year-old singer's had sought legal assistance in the matter after he could not persuade photographers to stop following him voluntarily, reported Daily Telegraph.
The order came last week from Justice Nicola Davies prohibiting paparazzi from chasing Styles in their cars or motorcycles for pictures and videos.
"Styles is not trying to prevent fans approaching him in the street and taking photos. He remains happy to do that, as he always has," Style's attorney David Sherborne said.