• My WordPress site (built with Divi) was hacked and malware spread throughout that site and the others I have. I located all infected files (index.php, htaccess, etc.) and deleted them so that my domains would be unlocked by my host. Then, I copied all the remaining files in their folder structure. Is there anyway I can use those to restore my website? If not, can they give me the images and text I used, so I can rebuild it that way?

    (Yes, I have a backup, but it is located in another country. I was on a short trip when the world changed — COVID-19 –, and I am still unable to return to get it.)

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Get a fresh cup of coffee, take a deep breath and carefully follow this guide. When you’re done, you may want to implement some (if not all) of the recommended security measures.

    If you’re unable to clean your site(s) successfully, there are reputable organizations that can clean your sites for you. Sucuri and Wordfence are a couple.

    Thread Starter shori

    (@shori)

    Thanks for the response.

    Almost all of those things were done right after the incident. The sites were scanned and infected files deleted, backups were made of what remained, and the sites were hardened.

    What I’m trying to do now is pick up the pieces that remain and use whatever I can of them. I prefer that to starting from scratch at rebuilding the sites.

    My challenge is that I am not a WordPress techie, and do not know what is contained where, etc. I do know that files like index and htacces were corrupted, but I don’t know how to rewrite them to point at the remaining files, etc. it appears (to me) that most of my pages are still there. I just need to figure out how to make them appear.

    A vanilla wordpress instalation will only have the following .htaccess rules:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    

    And the following in the root index.php file:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define( 'WP_USE_THEMES', true );
    
    /** Loads the WordPress Environment and Template */
    require __DIR__ . '/wp-blog-header.php';
    
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to recover from malware attack?’ is closed to new replies.