They mainly relied on the fact a submarine of the day was often on the surface for a range of reasons, such as charging batteries or crossing long distances. The first approach to protect warships was chainlink nets strung from the sides of battleships, as defense against torpedoes. Nets were also deployed across the mouth of a harbour or naval base to stop submarines entering or to stop torpedoes of the Whitehead type fired against ships.