Apple has previously blocked, then unblocked, the latest version of Java on the most recent versions of its Mac operating system.

On Thursday, Apple also started blocking an older version of the Mac system, called Snow Leopard, running Java 6, also an older version.

The US Department of Homeland Security (DHS) recommends disabling Java in web browsers because it has provided pathways for hackers to take control of computers that visit a website rigged with malicious software.

Oracle, which owns Java, has issued updates that fix known vulnerabilities, but the DHS expects that there are more.