Server. Found some malicious code inserted into files.
Interesting thing - server says last time those files were edited was June. And I have backup from September (clean files). Not sure how was that possible.
What platform is used for the site? Check for updates?
Are you using shared hosting? Vps or Dedi? cpanel? If VPS or Dedi and cPanel Mod_Security will help with injection attacks. CSF is a good plug in also.
Review your logs to see where it came from. Notify your host.
On this shared account I have 5 WP websites, all of those has some malicious shit injected in all the php files, BUT only 1 of them redirects. I have cleaned the files, but it did not help.
Where to look for redirect if only 1 of 5 sites are redirecting while all of them has malicious code?
htaccess is clean..
Theme files are clean as I restored everything from back up. Let's see database..
Although it is still strange that only 1 of 5 sites redirects, usually when it gets hacked all sites go down..
I have left a message for my partner to check this thread when he gets online. He has a little better head for current exploits then I do.
Check through the db. There is a number of site settings relating to domain in 2 tables that may result in a redirect. You can view it in word pad, download a current copy and search for the domain the site is redirecting to.
I will stay for a while longer and try to help but it is fairly late here.
Added:
You need to find the vulnerability and fix that as well.
Redirect the domain in cpanel to 1 of your other sites for now if need be.
Did you report the hack to your hosts support. It may be more then your sites that have been compromised.
Thanks for the help and advice
I cleaned it up, it was one of the embeds from 2009 (I think I sold blog post to the site back then) that started redirecting all the site in 2014
Thanks for the help and advice
I cleaned it up, it was one of the embeds from 2009 (I think I sold blog post to the site back then) that started redirecting all the site in 2014
Comment