A hacker attacked a Huddersfield golf club’s website leaving a religious message and a picture of a gunman.

On Saturday morning members of Crosland Heath at Crosland Hill logged on to check if the course was open and were shocked to find the message and sinister image had replaced the normal site.

The message was in French on a black background had taken the place of the golf club’s news. Translated it said: “I am not Charlie. I am a Muslim.

“I am not a terrorist. Respect other people’s religion.”

However, underneath the words was a threatening computer-generated image of a figure in a mask and hooded top brandishing a handgun which scrolled towards the top of the screen.

One female member said: “It was frightening. I got off the website as fast as I could – you don’t know if there is a virus.”

At the bottom of the page was a name which is that of a well-known Moroccan computer hacker.

The site was attacked in the early hours of Saturday morning. The hack was discovered on Saturday morning and the golf club managed to get the offending page down within a few hours.

Although the club has declined to comment about the hack, a message on its Facebook site published on Saturday morning states: “The website was hacked at 21.10 hrs last night by a Moroccan hacker simply causing disruption in the name of his religion. He has targetted many websites recently. He managed to take down one of Sony’s Music Sites!

"We have a back-up from before the hack so all will be restored shortly. Before doing so we are investigating the entry method to close the vulnerability.”

A later Facebook message on Saturday evening adds: “The website is now recovered, however will stay offline until tomorrow to allow for further testing. Will announce here once the site is fully available.”

In November Keighley Cougars Rugby League Club made national headlines after its website was hacked. The normal home page was replaced with a page featuring the message: “I love you Isis.”

It was also displayed on a black background, and had the words “Hacked By Team System DZ” at the top.

The rugby club’s chairman Gary Fawcett said that counter terrorism police were involved in removing the site and believed other sites had been targeted in the same way.