The Gambling Block feature works by identifying and stopping transactions to gambling-related merchants, based on the unique merchant codes assigned to such businesses.