Former premier Dr Mahathir Mohamad today said the government has the right to take action against anyone, including bloggers, who flout the law.