A judge has ruled that social services should not facilitate access to prostitutes for a man with learning disabilities who has a “high sex drive”.

The man, who is in his 50s, had become fascinated with female sex workers about a decade ago after developing a relationship with one, Mr Justice Keehan heard.

He is now in supported accommodation and in the care of Lincolnshire county council. The authority’s social services bosses had asked for a ruling on what was in his best interests with regard to “contact with sex workers”.

They did not intend to facilitate access to sex workers, either in Britain or in another country where payment for sexual services was legal, and Keehan agreed with that decision.

The judge, who is based in London, analysed the case at a hearing in the court of protection, where issues relating to people who lack the capacity to make decisions are considered, and has outlined his conclusions in a written ruling published online.

The man had said he had a “high sex drive” and found the “lack of access to sex workers” frustrating. Keehan said he accepted that the man, who was not identified, would be disappointed by his decision.

“I have due regard to [the man’s] wishes and desires,” said the judge. “But I have come to the clear conclusion that the local authority have adopted the right decision and approach, in not seeking to facilitate his contact with sex workers either here or abroad.”

He added: “I consider it would be wholly contrary to public policy for this court and for this local authority, to endorse and sanction [him] having sexual relations with a woman for payment.”

The judge said the man would also be at risk of damaging his health and being exploited – risks he did not understand – and social services staff might be in danger of prosecution.

“I entirely accept that [the man] will be, to put it mildly, disappointed by and he will undoubtedly not agree with my decision,” said Keehan. “Nevertheless, I am satisfied that the conclusions I have reached are in his best interests.”