The National Gallery in London said Thursday that it was banning liquids in a move to bolster security of its artworks after a spate of high-profile attacks by activists.