In an effort to crack down on shared memberships and prevent nonmembers from sneaking in, Costco is installing card scanners at the entrances of its warehouses, the company announced on its website.