Important: Use Software Update and install all updates until Software Update reports "Your software is up to date."
Select the version of Safari you are using below to see the relevant instructions.
Safari 6.1 and later
In Safari 6.1 and later, you can enable or disable the Java plug-in for individual websites from the Security pane of Safari preferences. When the plug-in is installed but disabled on a website, Safari displays the disabled plug-in prompt instead of the Java content:
If you see a missing plug-in indicator instead of the disabled plug-in indicator, the Java Internet plug-in is not installed.
Safari 6 and earlier
To disable the Java web plug-in in Safari 6 or earlier, follow these steps:
- In Safari, choose Safari > Preferences or press Command-comma (⌘-,)
- Click "Security".
- Uncheck (deselect) "Allow Java".
- Close the Safari preferences window.
To re-enable Java in Safari, check "Allow Java".