Strangest Google results ever : programming trick ?

Discussion in 'Programming' started by NoobieDoobieDo, Apr 2, 2008.

  1. #1
    I run a few (less than 10) subdomain on a domain, 99% of the domains have Wordpress setup on them.

    Today I did a search on google for site:mydomain.com and there are MANY (pages upon pages) of bogus results showing up for 1 of the subdomains that look like this :

    Buy ambien
    Buy ambien. Special buy ambien it now online. Registered on buy ambien if you would like to online check buy ambien this drugs catalog.online only way is ...
    sub.domain.net/?page=315 - 12k - Cached - Similar pages - Filter


    When you click the search result link it never even connects to my server, it automatically connects to some other server and a spam site loads. To be clear, it's not like google goes to my page then you get redirected, it loads the spam sites w/o redirection from my domain.

    These post are not on my server, I just ran a SQL search for some of the text in question and it doesn't exist in my DB. Also I use that subdomain all the time and would have noticed if there were 200 extra post , especially since it has less than 100 of its own post.

    Questions :


    1. How do they do this ?
    2. What can I do ? Surely it can't be good that google thinks these pages belong to me.

    BTW, google says it has 561 results for my site, I bet at least 300 of these are these "hacked" links.

    Thank you
     
    NoobieDoobieDo, Apr 2, 2008 IP
  2. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #2
    May be your web hosting account is hacked and those pages are injected .
     
    it career, Apr 2, 2008 IP
  3. NoobieDoobieDo

    NoobieDoobieDo Peon

    Messages:
    1,456
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I thought that also but when you click the google result it never connects to my server at all. I review my logs often and would have noticed all the extra traffic. It's like they've convinced google that their domain is part of my domain or something.
     
    NoobieDoobieDo, Apr 2, 2008 IP
  4. ngcoders

    ngcoders Active Member

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #4
    Try changing your user agent to google bot and try to go to your site , maybe a script checks agent to show pages accordingly.
     
    ngcoders, Apr 2, 2008 IP