My Website's Been Hacked

Home Forums Support My Website's Been Hacked

Home Forums Support My Website's Been Hacked

  • This topic has 1 reply, 2 voices, and was last updated 7 years ago by Tom.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #165543


    My website has been hacked, and the affected files are all GP ones:


    I’m planning to uninstall and reinstall GP, but have you heard of anything like this before? Any ideas/tips?

    • This topic was modified 7 years ago by Mike. Reason: Clarity of formatting
    Lead Developer
    Lead Developer

    Hi Mike,

    I’m no expert on hacking, but I fixed quite a few hacked websites in my freelancing days.

    The most common reasons for getting hacked:
    * Out of date WordPress installation
    * Out of date plugins and themes
    * Shared hosting/server security (GoDaddy used to be awful, hopefully they’re better now)

    The most common files that were changed:
    * wp-config.php
    * .htaccess
    * Active themes and plugins

    So first, make sure everything is up to date.

    Then, go into your server via FTP and sort your files by date modified. It’s possible that some nasty code was injected in other files as well, including the core themes (Twenty Fifteen etc..) and files like wp-config.php and .htaccess.

    Re-install GP Premium and GeneratePress, and remove the nasty code from any other areas you can find.

    Change all of your passwords – WP, hosting, FTP, even your database if you can.

    If your username is “admin”, change it.

    Install a plugin like Wordfence to add a little extra security to your site.

    If it happens again – I would look at your server. Shared hosting is notorious for stuff like this, and some hosting companies don’t have the greatest security.

    Sorry this happened to you – super frustrating. The above should help you get back to having a clean site and hopefully prevent it from happening in the future.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.