To change your cookie settings in Safari, click "Safari", then "Preferences", then click on the "Privacy" tab. On this page there will be a "Cookies and other website data" section. Here you can choose to accept or deny all cookies, or accept cookies only from sites you directly browse to.
Click "Safari", then "Preferences", then select the "General" tab. At the top, you can select Safari from the drop down menu.
To enable popup blocking in Safari, click "Safari", then "Prefences", then click on the "Security" button. On this page, check the box next to "Block pop-up windows". This will block all popups from web pages.
In Safari you will need to clear both the cookies and cache. To clear the cache in Safari, click on "Safari", then click "Empty Cache". To clear cookies, click on "Safari", then click on "Privacy". From here, click on "Remove all Website Data", then click on "Remove Now".