“Like” at your own risk.

A man in France was sentenced to three months behind bars this week — for liking a photo on Facebook, a report says.

The 32-year-old was found guilty Monday of supporting a terrorist group after he gave a “thumbs up” to a grotesque image of an ISIS fighter decapitating a woman, according to Le Parisien.

“When you hit ‘like’ it means that you are not shocked by what you see and you support it,” explained Jean Baptiste Bougerol, the acting federal prosecutor in the case.

The man, who is not being named, was sentenced by a correctional court in Meaux, about 35 miles east of Paris.

Prosecutors said the “like” was ultimately enough evidence to search his home — where authorities found a number of airsoft guns and some marijuana plants, but nothing ISIS-related.

The man wound up being slapped with a fine for the pot and charged for the Facebook like, Le Parisien reports.

Strangely, he later argued that the photo was just one of countless disturbing images that he had liked, most of which had no connection to ISIS. The man claimed that since the pictures included acts of violence toward both people and animals, they were proof that he wasn’t an advocate of terrorism.

The court didn’t buy it, though, and convicted him anyway.