I am trying to investigate a weird attack on a Joomla 3.6.5 website: If you access the website directly through its URL, everything works as expected. However, if you search for the website using Google and use the search result (showing the exact same URL that works fine) you end up being redirected to another (scam) website.
How could someone facilitate this? Would taking control of the Google Webmaster tools be sufficient to setup such redirects?