Use a VPN
If you want to make sure that your internet connection on your Mac is secure, then I recommend using a VPN.
VPN stands for Virtual Private Network, and it routes your internet traffic through a different IP address so that any unique information that’s sent to website servers is masked and disguised as other information, keeping your original info safe from prying eyes.
Reputable and good VPN’s aren’t free, though, but you can get one for around $5 per month, which is very low price to pay for the protection you'll get. Personally, I like Private Internet Access, but there are a ton of other VPN services out there to choose from.