WordPress.org

Ready to get started?Download WordPress

Forums

Visiotor gets redirected to spamsite (5 posts)

  1. Andersss
    Member
    Posted 1 year ago #

    Hi,
    I have a problem: Sometimes visitors get redirected to a spamsite (online-dating service) when they navigate on my site. I figured it's some kind of malicious code hidden somewhere in my theme-files but I can't find it. Anyone know how to remove this? Thanks!

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

  3. Andersss
    Member
    Posted 1 year ago #

    Thank you for taking your time!

    I ran my site at http://www.unmaskparasites.com/ and found a suspicious javascript in header.php. After I removed it the problem is solved.

    I had installed several security plugins before but none had worked.

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    No, simply removing bad code may not prevent another hack - it does not address how the hacker got into your site. I'd suggest you go through the rest of the resources listed.

  5. Andersss
    Member
    Posted 1 year ago #

    The thing is I got the theme from a suspect source, so I'm pretty sure it was delivered to me with the code already in the header.

Topic Closed

This topic has been closed to new replies.

About this Topic