The Tokyo District Court has dismissed a lawsuit brought by a freelance photographer seeking the quashing of a government order preventing him from traveling to war-torn Syria to work.

In the lawsuit, Yuichi Sugimoto, 60, claimed the Foreign Ministry's order that he forfeit his passport infringed on his right to freedom of travel and of the freedom of the press guaranteed by the Constitution.

But the court said Wednesday that the right to freedom of travel could be restricted for the sake of the public welfare, with authorities considering his Syria travel plan too dangerous to allow.

"The foreign minister's judgment to stop the plaintiff's travel was reasonable since (the court does) not accept that he was gathering precise information and analyzing the possible danger there," presiding Judge Takao Furuta said.

Sugimoto said at a news conference held after the ruling that he plans to appeal the decision.

According to the ruling, the ministry ordered Sugimoto to hand in his passport in February 2015. The decision was made due to an assessment that he would very likely find himself in danger as he planned to travel to Syria immediately after the Islamic State group released beheading videos of two Japanese hostages held in the country.

It was the first time the ministry used the passport law to confiscate travel documents in order to protect an individual's life.

The court also rejected the plaintiff's claim that it was unconstitutional that the ministry issued him a special passport in April the same year that was not valid for travel to Syria and Iraq.