The Hungarian government said on Monday it intends to ban slot machines by the end of the month and replace lost revenue by regulating online gambling, after warning that tougher measures are urgently needed as groups within the gambling industry pose a threat to national security.