If you're concerned about security, I'd recommend using the MVPS hosts file to block advertizing and malaware. To get it, you can download and extract it, then copy its contents to your hosts file, save and close it. Effects kick in immediately, works with every browser as well. Here are the commands:
Then copy the whole content and close it.
sudo gedit /etc/hosts