The Home Office website has been hit by a malicious link that led to a Japanese pornography site.