Consumer goods giant Unilever has promised to stop its brands running adverts on porn sites, after its men's grooming range Dollar Shave Club ran a campaign on the website Pornhub.

Unilever, which makes Dove soap, Marmite and Hellmann's mayonnaise, ran a campaign for its grooming company Dollar Shave Club, which sends members razors in the post, with one of the ads reading “If you use our bathroom products you won't have to visit this site as much.”

The consumer goods giant said that it had been unaware of Dollar Shave Club's campaign, and that the shaving brand had "operational independence" over its marketing activities.

Kraft Heinz, which owns Weight Watchers, HP Sauce and Capri-Sun, has also advertised on Pornhub.

It took over the website’s homepage for a one-day #FoodPorn campaign to promote Devour, its frozen food brand, in January.

A Kraft Heinz spokesman said: “The brand was explicitly talking about #Foodporn, which has become a cultural phenomenon on Instagram.”

Pornhub has 110million daily visits and is the most popular pornography site in the UK. Its audience is 71 percent male, making it an attractive site for advertisers who are targeting campaigns toward men.