About the problem – If you click on any links on your site randomly for about 5-6 times, you might get redirected to someplace else like carolini.net. This problem is due to a malicious script installed in your wordpress theme.
This can happen if you are using a pirated version of the theme. Or if someone has hacked into your wordpress site. But don’t worry, it can be solved.
All you need to do is locate the malicious script and remove it.
This script is most likely to be found in header.php of your current active theme.
How to access header.php ?
- Login to your WordPress admin dashboard
- Click on Appearance.
- Click on Editor.
- See the right hand side bar. You will find header.php there.
- If its not available (that’s a rare case), then you will have to manually access header.php via FTP client.
Now once you open header.php. Copy the code given below –
Then go back to header.php and use CTRL+F to find this code inside header.php. If you find it in the header.php then remove that code from the file and save the file.
This should solve the problem. If you have any questions or if any step is not clear, feel free to comment below. I will reply as soon as possible.