localhost redirects to malware site(wismart.ru) if file is not found

Discussion in 'PHP' started by samyak, Oct 30, 2011.

  1. #1
    I have this strangest problem ever. I am using wampserver for my local server and for this one oscommerce project, the browser is redirected to this malware site 'wismart.ru' if a specific file is not found.

    I have no codes whatsoever in my .htaccess file to do any kind of redirections.

    What other ways could this redirection have been set by itself?

    Please help.

    Thanks
    Amit
     
    samyak, Oct 30, 2011 IP
  2. kishanterry

    kishanterry Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Have you checked "HTTP_NOT_FOUND.html.var" file in your <wamp_installation_directory>/apache/error directory for any codes that does the redirection. I found that file in my XAMPP installation, but the Apache in WAMP might also have certain default Error 404 page. Please check that file.
     
    kishanterry, Oct 31, 2011 IP
  3. kellyphong

    kellyphong Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    May be one (or many) of your html pages (or html in php scripts) contains some injected code, this usually happens with free themes.

    If you are using some text-editor find 'wismart.ru' in your source code files, this should be search under php html and javascript files. Once found delete those lines of code that seems suspicious or paste it here so that someone can assist you.

    Best!
     
    kellyphong, Oct 31, 2011 IP