Advertisement:

Author Topic: Google and Bing Redirect  (Read 591 times)

Offline bhamel712

  • Newbie
  • *
  • Posts: 1
Google and Bing Redirect
« on: September 16, 2020, 04:11:45 PM »
If I lookup my forum from google or bing and click the link it redirects me to a medication site.  If I type the address directly or the sub sites it works fine.  It looks like bing is going to the index.php on the main site and I cannot find where it is getting the redirect.  Can anyone help?

hxxp:www.bing.com/search?q=smokinitforums [nonactive]
The second result is the problem.
hxxp:www.smokinitforums.com [nonactive] is the site.
 

Thanks
Ben
« Last Edit: September 16, 2020, 04:24:50 PM by bhamel712 »

Offline AlanDewey

  • Semi-Newbie
  • *
  • Posts: 74
    • CCS Forum
Re: Google and Bing Redirect
« Reply #1 on: September 17, 2020, 09:23:52 AM »
Very interesting.

I tried it, and when I clicked on the result in Bing, I got the drug site also.

If I put https://www.smokinitforums.com/index.php  in the address bar of the browser, I get your forum.

I hover over the Bing result, I see  https://www.smokinitforums.com/index.php which certainly appears that it will send me to https://www.smokinitforums.com/index.php  but, like you, I click it, I get the drugs.

I even hover over the Bing result, click "copy link location", paste it in Notepad and I see https://www.smokinitforums.com/index.php

I am a beginner at this, but you know to expect the question "what mods do you have installed?"

Look what I get at google when searching your forum name.

My motto as forum administrator: "What have I gotten myself into?"
If I knew what I was doing, everything would be so simple

Offline Dzonny

  • Localizer
  • SMF Super Hero
  • *
  • Posts: 12,275
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Google and Bing Redirect
« Reply #2 on: September 17, 2020, 09:32:38 AM »
I get some kamagra sites from google in description.
Looks like you have injected some code in your files somewhere to me though.

Can you attach your index.php file from root of your forum, and index.template.php file from your theme?
Do you have anything in your error log? Any mods installed?

Offline Elmacik

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,285
  • Gender: Male
  • = Human Draft =
    • IT Store
Re: Google and Bing Redirect
« Reply #3 on: September 17, 2020, 11:27:30 AM »
Google cache of your main page shows that once your forum had that drug content (just the same with that drug web site) already: https://webcache.googleusercontent.com/search?q=cache:tUYOFo7HhA8J:https://www.smokinitforums.com/+&cd=3&hl=tr&ct=clnk&gl=tr

Seems like you have some kind of "Redirection Board" modification installed and possibly through that mod, some JavaScript injection could have been done.

You should search for "kamagra" keyword in your forum DB and source files; because the redirection code includes this keyword at the destination. (Or better remove the mod completely?) Probably this injection has a referrer trigger which triggers the redirection only when it senses that the visitor clicked from Google. This way it redirects only from Google results but it doesn't redirect when entered the direct link, so that it tries to keep you from noticing it.
Home of Elmacik

Offline AlanDewey

  • Semi-Newbie
  • *
  • Posts: 74
    • CCS Forum
Re: Google and Bing Redirect
« Reply #4 on: September 18, 2020, 07:21:13 AM »
Interesting......

I usually use DuckDuckGo.com for searching.      Go to DuckDuckGo.com and enter this in search     site:smokinitforums.com

I tried about 50 of the results and all of them went to the expected page of your forum, NOT the drug site.

I sure have no idea how this is being done, but the drug people's trick does not work with DuckDuckGo.com


The site that google sends me to is  rx-24-online.com    so search for that in your files and database.
My motto as forum administrator: "What have I gotten myself into?"
If I knew what I was doing, everything would be so simple

Offline AlanDewey

  • Semi-Newbie
  • *
  • Posts: 74
    • CCS Forum
Re: Google and Bing Redirect
« Reply #5 on: September 18, 2020, 07:26:18 AM »
You may also try going to your google webmaster account and see what it reports for "security issues"
My motto as forum administrator: "What have I gotten myself into?"
If I knew what I was doing, everything would be so simple

Offline AlanDewey

  • Semi-Newbie
  • *
  • Posts: 74
    • CCS Forum
Re: Google and Bing Redirect
« Reply #6 on: September 18, 2020, 07:42:06 AM »
Your cookie settings?

-->  Server Settings --> Cookies and Sessions

Use subdomain independent cookies ?

Force cookies to be secure ?

My motto as forum administrator: "What have I gotten myself into?"
If I knew what I was doing, everything would be so simple

Offline Ricky.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,103
    • Indian Linux Forums
Re: Google and Bing Redirect
« Reply #7 on: September 18, 2020, 02:00:18 PM »
Looks like your site has been compromised and they are using some referrer validation to show their site if user is visiting through search engine, this could be the reason that you are not seeing that drug site when you open it directly.

Offline Ricky.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,103
    • Indian Linux Forums
Re: Google and Bing Redirect
« Reply #8 on: September 27, 2020, 02:01:20 PM »
Is this issue resolved. I recently came across another similar case but was using some outdated version of Joomla. 
Essentially, his site hacked and they are using a method call Cloacking". One can read more about here:
https://developers.google.com/web/fundamentals/security/hacked/fixing_the_cloaked_keywords_hack