So I was recently show by a friend something that is happening to a real estate website. It seems that when their website is accessed from a regular URL request in browser it is fine however when requested from the google search engines its redirected to a different website. One for selling Viagra (Obviously the hack/joke). I tried researching on how this was accomplished but am a little held up. I tracked the requests that I was receiving from google but everything seems to point and look as if they should just output the website that was requested. I'm wondering if this is server side or if I am missing something.
Website Url - http://www.jandjip.com
Google Url redirect - https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=2ahUKEwiDoMqQnKHhAhXlmeAKHWpKD-IQFjAAegQICBAD&url=http%3A%2F%2Fjandjip.com%2F&usg=AOvVaw1UmccVjg4yMCM39WRDmiuZ
I understand that google uses their redirects to track data but is there some way someone could have tricked or poisoned the google search result to do this?