Devizes MP Claire Perry has been subjected to sexually explicit and violent tweets following her work with David Cameron on measures to tackle the spread of extreme pornography and child abuse on the internet.

Mrs Perry has championed the move to make internet providers more responsible about access to hardcore pornographic images.

Her campaign was endorsed by Prime Minister Mr Cameron this week.

He said all internet service providers had signed up to making available family-friendly filters on demand and gave search engines until October to remove access to images of child abuse.

But following television appearances, Mrs Perry has received vile messages from internet “trolls”.

She wrote on her Twitter page on Tuesday: “I am tempted to shut down my Twitter account given the trolling going on incl. to me – but that would be giving in.”

In a message to her Twitter account, user @epivalent said: “Please disappear into obscurity and/or alcoholism. or die, whatever. the main thing is you should f*** off and never return.”

In another foul-mouthed posting, a Twitter user going by the name @badassday said: “Devizes is in Wiltshire, right? That’s where there isn’t any porn, & it’s still 1953, right? Hello @claire4devizes, u stupid dinosaur t***.”

Mrs Perry has followed the name and shame tactics of television classicist Mary Beard, who silenced an internet troll of her own. Ms Beard, professor of classics at University of Cambridge, retweeted the “highly offensive” post in which she was called a “filthy old slut”.

Police are investigating a series of sexually explicit and violent tweets sent to another MP after she spoke out in support of a feminist campaigner who received threats to rape and kill her via Twitter.

Walthamstow MP Stella Creasy faced an online attack from internet trolls after she gave her backing to Caroline Criado Perez, who received the barrage of abuse after her successful campaign to have a woman’s picture placed on a new banknote.

The politician retweeted some of the sinister messages to her 30,000 followers as she warned the “morons” behind the abuse would face justice.

n Claire Perry’s column: Page 33