If you inadvertently go to an unwanted website, it might be a good idea to check you account settings on Google. Go to your Google account and go through your Account and Privacy settings. In some cases, if you inadvertently clicked on something in an undesirable website, you may wish to delete all of your cookies. Cookies are small programs that are embedded in the memory of your computer, linking you to websites. In most cases, these are helpful, but in some cases they can be pernicious. You might need to ask for some assistance in deleting your cookies or you may already have a setting on your computer preventing cookies from being installed. The downside of refusing any cookies is that you will need to remember all of your passwords and log in to every website every time. There are security programs that can help you manage your passwords however.
This is like building a fort in the old days. You need to be prepared for attacks.