The confinement of superfluid helium for a Dewar in space poses a unique challenge due to its propensity to minimize thermal gradients by essentially viscous-free counterflow. This poses the risk of losing liquid through a vent pipe, reducing the efficiency of the cooling process. To confine the liquid helium in the Gravity Probe B (GP-B) flight Dewar, a porous plug technique was invented at Stanford University. Here, we review the history of the porous plug and its development, and describe the physics underlying its operation. We summarize a few missions that employed porous plugs, some of which preceded the launch of GP-B. The design, manufacture and flight performance of the GP-B plug are described, and its use resulted in the successful operation of the 2441 l flight Dewar on-orbit for 17.3 months.