Thousands of websites have been found to be infected with malicious code that redirects unsuspecting users. The malware compromises the websites through vulnerable themes or plugins.
How can I detect or avoid this?
To avoid vulnerabilities on your website, make sure the plugins and themes you use are from trusted developers and are up-to-date. New vulnerabilities may appear so it’s also important to have a regular update schedule.
If you think your website may have been hacked or are getting redirects to random domains, check out Sucuri’s free website scanner.