You can block cookies by default and then make exceptions. In Preferences > Privacy & Security > Cookies, set "Block sites from setting any data" and then click "Manage Exceptions" and make exceptions.