• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Site has been hacked

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Site has been hacked

This topic is: not resolved

Tagged: hack, html, security

  • This topic has 8 replies, 5 voices, and was last updated 11 years, 11 months ago by Summer.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • December 19, 2013 at 3:13 pm #80316
    docstw
    Member

    My site healthyworkplaces.info is hacked because on IE (only, not Firefox or Safari) it is showing with some porn link text and changes to images, etc.

    I have noticed in the source code for the home/index page (healthyworkplaces.info) that there is a section of code that is responsible for this.

    How do I remove this? The home page is the only page in my Genesis design that isn't listed as a 'page' and I don't know how to make changes to it's code.

    Thanks. Scott

    http://www.healthyworkplaces.info
    December 19, 2013 at 3:21 pm #80318
    songdogtech
    Participant

    Hopefully you have a backup of your child theme and any customizations you made to it, because you need to upload fresh copies of all files. Your home page in Enterprise is a template file; download a new copy of it from your account at Studiopress.

    Basically, work your way through these resources and follow all instructions to completely clean your site or you may be hacked again. See FAQ: My site was hacked « WordPress Codex and How to completely clean your hacked wordpress installation and How to find a backdoor in a hacked WordPress and Hardening WordPress « WordPress Codex.

    Change all hosting and site access passwords. Scan your own PC. Use http://sitecheck.sucuri.net/ before and after. Tell your web host you got hacked, and consider changing to a more secure host: Recommended WordPress Web Hosting

    December 19, 2013 at 3:56 pm #80326
    docstw
    Member

    I'm wondering if I can simply create the home page (static) fresh in 'pages' area. And then make the new home page active. Any advice please?

    December 19, 2013 at 5:58 pm #80359
    Terri
    Member

    Hi Scott,

    Just changing the home page won't solve the problem. Here's a great article on how to tell if your WP site (theme and/or plugins) has been hacked, how to resolve the issue, and how to protect your site (at least as best as possible) from future hacks.
    http://www.nutsandboltsmedia.com/how-to-find-out-if-your-wordpress-site-has-been-hacked/

    Terri

    December 19, 2013 at 6:38 pm #80365
    docstw
    Member

    Thank you but I have investigated those avenues and I know exactly what I need to change on my homepage (I have done all of the other steps for protection...but that still leaves the same site pages intact and I must the code at the top of my homepage.

    It is the third line of my code that begins:

    </script>
    <style type="text/css"> dofollow { display: none; }</style><dofollow>
    netmirc

    The 'netmirc.com' should not be there, and following this there is a lot of porn linkage (I am not pasting it all here). I just don't know how to change this part of the page. That's why I thought changing the page (starting anew) would help. If the security steps are taken, shouldn't this be the next focus for me?

    Thank you for any more help. I'm surprised it's taking me so long to figure this one change out. Scott

    December 19, 2013 at 7:05 pm #80371
    Summer
    Member

    Do you have a home.php in your theme folder? That seems like the most likely place that the code was inserted into. Are any of your other templates infected as well?


    WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
    Slice of SciFi | Writers, After Dark

    December 19, 2013 at 7:43 pm #80375
    workky
    Member

    I would do as summer suggested , I had the same thing happen to a friend of mines web site and we looked through all the php files and found the code, deleted it and we were good to go. From that point on I keep a backup once a week, so incase it happens I can just back it up from a good copy


    life’s tough, it’s a lot tougher if you’re stupid
    My Website

    December 20, 2013 at 7:23 am #80445
    docstw
    Member

    Thank you and I think you are both right. I know that on the home/index landing page http://www.healthyworkplaces.info, that is where the problem is.

    So I have looked at the file structure but am totally confused. There are many 'home.php' and 'index.php' files in the structure. Some are under the 'themes' subfolder of my wordpress site, under "enterprise" (my theme) and some are at a higher level, outside/above the themes level (www. or public_html). But I have looked through those and there are hundreds of files and subfolders. I really don't know where to begin looking. And every one I have opened so far that says 'home.php' or 'index.php' is instructing WordPress or the theme to do something, and not the actual page I am looking for.

    Any thoughts where this file is specifically in the WordPress file structure?

    Thanks again. You can imagine how worried I am to get this fixed.

    December 20, 2013 at 10:34 am #80466
    Summer
    Member

    If you are using the Enterprise theme, then the files you are looking for would be in themes/enterprise.

    The file home.php is the code that creates the home page for your site, and the code should be in there. it won't look exactly like what you'd see in a view source beause all that PHP code generates the HTML you see. Which likely means that they snuck some code into that PHP file, or some code to call it from another file.

    If it's not in there, also check your functions.php.

    Looking at the page source for your homepage, that code was slammed at the very beginning of your page, before the DOCTYPE declaration, but I don't see it at the top of any of the other few pages I've clicked on. So it has to be in one of the files in your enterprise theme folder. Can you do a search on all the files in that folder for "mirc" or one of the other domains in there? I see about 20 links to questionable sites, most of them with adult entertainment type domain names.


    WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
    Slice of SciFi | Writers, After Dark

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble