On this page

    Why websites (WordPress, Joomla, etc.) get hacked and what to do

    In short: almost every hacked website has something out of date: the application, a plugin or a theme. Nobody targeted you personally. Automated programs scan millions of websites every day, looking for known security holes. Once a site has been hacked, deleting the files that were found is not enough. The reliable fix is to restore a clean backup or make a clean installation, then update everything immediately.


    How they get in

    1. Outdated plugins and themes (the vast majority)

    Security holes in popular WordPress plugins and Joomla extensions are published every week. Within hours of publication, automated attacks start against every website still running the old version. A website that "works fine" but has not been updated for months is almost certainly vulnerable.

    2. Abandoned plugins and old installations

    Plugins whose developer no longer updates them, themes that are not used but were left installed, test or old copies of the website (/old, /test, dev.domain.gr): nobody updates them, but they are reachable from the internet. They are among the most common ways in.

    3. "Free" premium plugins and themes (nulled)

    Paid plugins and themes offered "for free" on unofficial sites very often come with malicious code built in.

    4. Weak or stolen passwords

    A weak website administrator password, or a cPanel/FTP password stolen by a virus on your computer. See our article on stolen passwords: Stolen email and cPanel passwords: how to protect yourself


    What the attacker does to your website

    • Leaves "back doors": hidden files (often with legitimate-looking names) that let them come back whenever they want.
    • Creates fake administrators in WordPress, often with names like admin2, wp-support or random letters.
    • Uploads spam pages (casinos, pharmaceuticals, counterfeit products) that Google shows under your domain name.
    • Redirects your visitors to scam pages, often only those coming from a phone or from Google, so you do not notice.
    • Sets up phishing pages that imitate banks or other services.
    • Steals card details on online shops, with code that copies whatever the customer types at checkout.
    • Sends spam and attacks other websites from the server.

    The consequences

    • Google shows a "Deceptive site ahead" warning or removes the website from its results.
    • Your domain and the server end up on spam blacklists, and your email is not delivered.
    • If customer data leaked, it is a personal data breach under the GDPR, possibly with an obligation to notify the data protection authority within 72 hours.
    • To protect your visitors and the other customers on the server, we may have to take the website offline temporarily until it is cleaned.

    Why deleting the files we found is not enough

    The server's protection software and our checks find part of what the attacker left behind. There are usually more back doors in other folders, malicious code inside the database and fake users. If only the visible files are deleted and the hole stays open, the attacker gets back in within days, often the same night.


    What to do

    If a web developer or technician built your website, forward this article to them.

    1. Keep a copy of the current state (cPanel > Backup) for reference. Do not reuse files from it on the clean website: even an "image" can hide code.
    2. Restore a clean backup: cPanel > JetBackup, dated before the hack. Alternatively, make a new, clean installation and move over only your content (texts, images you have checked). This is the only reliable solution.
    3. Update immediately the application, all plugins and all themes. An old backup has the same hole, and if it is not updated, it will be hacked again.
    4. Delete whatever you do not use: inactive plugins and themes, old and test installations.
    5. Check the users with the Administrator role and delete any you do not recognise.
    6. Change all passwords: website administrators, database (also in wp-config.php), cPanel and FTP. In WordPress, also change the "salts" in wp-config.php so that everyone is logged out.
    7. Let us know by replying to our message, so we can check the website again.

    How to prevent it

    • Automatic updates. In cPanel, WP Toolkit updates WordPress, plugins and themes automatically and offers ready-made security settings ("Security").
    • Fewer plugins, only from the official repository or their developer. Never "free" versions of paid ones.
    • A maintenance contract with your web developer. A website needs maintenance like a car, not just building.
    • Strong passwords and 2FA for the website administrators.
    • Regular backups: we keep them in JetBackup, but keep a copy of your own outside the server as well.
    • Delete old installations. Whatever is not in use does not need to be on the server.

    If you have any questions, contact us by replying to the message you received.






    IPGLOBAL IKE   |  IP.GR Web Hosting and Domain Name registration services in Greece
    Close Cookies Preferences
     Functional  Statistics  Marketing


    You can see detailed information about the use of cookies on the page: Terms of use