Apple has stopped supporting Safari on Microsoft Windows. The latest available version, 5.1.7 has over 100 security bugs - please switch to another web browser as soon as possible. See Chrome, Firefox or Opera.
Open Apple Safari preferences by clicking the gear-shaped icon in the upper right corner and clicking Preferences. You can also use keyboard shortcut Ctrl+, (comma) for this.
First, click AutoFill tab and clear User names and passwords check box. This is very important because malware can easily steal all user names and passwords for sites you have visited (including your bank!). Use Password Safe for storing and auto-filling user names and passwords instead.
Next, click Security tab. Make sure that the Warn when visiting a fraudulent website check box is selected - this will enable protection from malicious websites.
In the Web content section, leave all check boxes activated.
And last, but not least - check that the Ask before sending a non-secure form to a secure website box is selected.
Move on to the Privacy tab. Set the Block cookies option to From third parties and advertisers.
Then select Deny without prompting from the Limit website access to location services section - you should not reveal your location to any website.
Because Safari has automatic extension updates off by default, you should take another step to ensure that all your extensions are up-to-date. Click Extensions tab for this, then find and click the Updates tab below the list of installed extensions.
Click to check the Install Updates Automatically box.
Finally, in the Advanced tab, click to enable the Show Develop menu in menu bar option. This allows turning on the Do-Not-Track feature that prevents advertisers from tracking and recording your online activities.
Close the Preferences window by clicking the red X mark in the right corner.
Now open the Page menu on the top right of browser window, expand Develop menu and click the Send Do Not Track HTTP Header command. Verify that a check mark appears.
To run your browser even more securely and protect it from zero-day attacks, use the free Microsoft EMET.