To block certain types of content:
Choose Safari > Preferences.
Click Security.
In the Web Content section, check or uncheck types of content you want to block or enable. Click the Help (question mark) button to see an explanation of the options.