For a French politician trying to get across a vote-winning message just five months ahead of the presidential election, it is about the worst thing that can happen.

Type in what might appear to be the website of the ruling right-of-centre prime minister François Fillon and what do you get? The campaign site of socialist presidential candidate François Hollande. In turn, a click on Hollande's site directs visitors to Lolitique, a blog of satirical political quotations. That may not be ideal, but it is certainly better than the party website of the ruling UMP party, where until recently website visitors were directed.

Even the French president, seeking re-election next May, has not escaped the cybersquatters. A click on www.Nicolassarkozy2012.fr takes you to a tattoo site and www.sarkozy-2012.info.fr to a blog opposed to the French leader including submissions from someone calling themselves Sarkozy Dégage, or Sarkozy Clear Off.

Even more damagingly, the domain name www.karachigate.fr – referring to an arms sale corruption scandal – takes visitors to the Elysée Palace website.

Centrist presidential candidate Hervé Morin is victim of a technological double whammy.Both www.morin2012.com and www.morin2012.fr take visitors to a blog called pense bêtes, or think stupid.

Several politicians have been forced to take legal action to recover domain names linked to their identities, including Bertrand Delanoë, the socialist mayor of Paris. The French courts tend to rule in favour of politicians.

A law introduced in March declared that the registering of domain names "may be refused when susceptible of attacking the personality, or intellectual property rights" of anyone except in cases justified by "legitimate interest and motivated by good faith".

Usurping someone's identity "to attack their honour" is punishable by a year in prison and a maximum €15,000 (£12,900) fine.

French politicians have long considered the internet an unruly beast that needs to be tamed. Suspicious of its ability to both embarrass and demystify, they have sought to regulate and "civilise".

In 2009, Jean-François Copé, head of Sarkozy's ruling right-of-centre party, said: "The internet is a danger for democracy", while Azouz Begag, a sociologist and minister under the former president Jacques Chirac, said: "The internet, it's political revenge."

Internet users clearly like to think ahead. The domain names for fillon2017, cop2017, hollande2017 and sarkozy2017 have all already been taken.