An Arkansas judge has issued an apology after posting a series of anonymous sexist, racist, and homophobic comments online, including saying that gay sex is just a “small step” away from sex with a dog.

Circuit Judge Mike Maggio admitted on Wednesday that he was responsible for posting comments on a Louisiana State University (LSU) fan message board.

Using the pseudonym “geauxjudge,” he had been posting anonymously for the past few years.

Political blogger Matt Campbell first disclosed the comments on his Blue Hog Report website on Monday, linking them to Maggio.

Among the posts, Maggio had written that gay sex is just a “small step” away from sex with a dog and that people should avoid “gay/lesbian week” at Disney World in Florida.

Also blaming women for marriage infidelity, he wrote: “Men have two needs. Feed me and f**k me Take care of both and we will be good. Whichever one you don’t then the men will find.”

According to the Independent, Judge Maggio has now apologised for his remarks in a recent statement.

He said: “I take full responsibility for the comments that have been attributed to me.

“I apologize deeply for my lapse in personal judgment and for that, I have no excuse. The comments posted were not acceptable. These comments are not a reflection of who I am.”

Following the apology, Maggio ended his campaign for a seat on the Arkansas Court of Appeals.