TL;DR
- A hacked website isn’t just a site that won’t open. Your clients’ data can be stolen. Google may warn people that your site is dangerous, and many of them won’t open it. Clients’ trust takes a long time to come back.
- Most sites aren’t hacked by clever lone attackers but by programs. The programs roam the internet on their own, looking for weak spots: simple passwords, old versions of software, add-ons with flaws.
- How easy a site is to hack depends a lot on how it’s built. A site with no database (where a site keeps its texts and settings on the server), no login page and no add-ons simply doesn’t have the most common weak spots.
- If your site has been hacked: take it offline, change all your passwords, restore the site from a copy made before the break-in, and ask Google to check the site again.
The Morning You Find Out
You wake up, open your website, and something is wrong. The home page shows a text you never wrote. Or worse: the site looks normal, but clients are calling. Google is showing them a warning that your site may be hacked. Or worst of all: you notice nothing, while your clients’ data has been leaking to strangers for weeks. That’s what a hacked website looks like.
What Happens When a Site Is Hacked
Someone Else’s Text on Your Site, or Your Site Sends People Elsewhere
This kind of hack is the most visible. Instead of your home page, there’s a message from the attacker. Or someone types in your address and lands on a different site: a scam, a site selling pills, or a gambling site. It’s unpleasant, but it’s not the worst that can happen. You see this kind of hack at once, so you quickly know something is wrong.
Your Clients’ Data Is Stolen
This is the most dangerous kind. Say your site collects clients’ details: names, email addresses, phone numbers, card details. An attacker can quietly take that data for weeks or months. You only find out when clients complain about charges they didn’t make on their cards. Or when the payment service writes to you.
In the EU, the General Data Protection Regulation (GDPR) applies. Under the GDPR, you must report a leak of personal data to your country’s data protection authority within 72 hours of learning about it. The exception is when the leak is unlikely to put people at risk (Art. 33). You must tell the people themselves if the risk to them is high (Art. 34). A leak can lead to complaints, fines and lasting damage to your reputation.
Google Warns That Your Site Is Dangerous
Google checks sites for harmful code. If Google finds something dangerous on a site, a warning appears next to it in search results. The warning may say, for example, that the site may be hacked or may harm your computer. When they see that, many people won’t open the site, and far fewer people visit it. To get the warning removed, you have to clean the site and ask Google to check it again. The check can take several days.
Attackers Hide Ad Pages on Your Site, and Google Pushes It Down
Attackers hide links and pages on your site that advertise pills, gambling or adult sites. You don’t see these pages, but Google does. When it finds them, Google may push your site down in search, from page one to page five, or remove it altogether. You may notice nothing until far fewer people visit your site. Even after a cleanup, getting your place in search back can be hard and take weeks or months.
Your Site Is Used to Attack Others
A server is the computer your site is stored on. Attackers can use your server to send spam, host fake pages that steal passwords, or attack other sites. All of it is done in your site’s name. Email services may block emails sent from your site’s address, and your emails stop arriving. Your hosting company, the company that stores your site, may close your account.
Four Common Ways Sites Get Hacked
1. Stolen or Simple Passwords
This is a common way in. Attackers run programs that guess the password on your login page, thousands of tries in a row. If your password is “password123” or “yourname2024”, it will be guessed.
What to do. Use a long password that you don’t use anywhere else. A phrase of several words works well, such as “blue-teapot-rides-to-riga”: easy to remember and hard to guess. And turn on two-step login wherever a service offers it. Then you need a code from your phone as well as the password.
2. Add-Ons and Themes With Flaws
Many sites are built with WordPress, a program for websites. WordPress gets extra features from add-ons, called plugins. Its look comes from design templates, called themes. Plugins and themes are written by many different people and companies. When a flaw is found in a popular plugin, attackers search the internet for sites with that plugin and break into them.
What to do. Keep all your plugins and themes updated. Delete plugins you don’t use. Only install plugins from trustworthy sources.
Related: Why your WordPress site keeps breaking — plugins cause trouble both for how a site works and for how safe it is.
3. An Old Version of the Website Software
The software a site runs on gets regular updates that close weak spots. If the updates aren’t installed, the weak spots stay open. And attackers know exactly which versions have them.
What to do. Turn on automatic updates. Or choose a kind of site that doesn’t need updates at all.
4. A Break-In Through the Server
Sometimes an attacker goes not after your site but after the server it’s stored on. If the hosting company itself is broken into, or another site stored on the same server, your site can suffer too. Even if you’ve protected everything on your side.
What to do. Choose reliable hosting that blocks attack programs before they reach your site. (Each time someone opens a page, their browser sends the site a request; attack programs send harmful ones.) Cloudflare works this way. It’s a company that stores websites and protects them from attacks.
Related: Why your website loads fast and hardly ever goes down — how Cloudflare blocks harmful requests to your site.
Why WordPress Sites Are Hacked Most Often
WordPress runs about 39% of all websites (W3Techs, November 2026). That’s why WordPress sites are the most common target. Attackers write programs that look for these sites and try known weak spots on them.
Plugins are both WordPress’s greatest strength and its biggest security weakness. There’s a huge number of free plugins, and plenty of paid ones. Some are badly written, abandoned by their authors, or full of flaws. Every plugin is one more door into your site.
WordPress itself isn’t bad software: you can build almost anything with it. But if you don’t want a WordPress site to get hacked, someone has to look after it all the time. That means updating the plugins, the themes and WordPress itself, scanning the site for harmful code, and making backup copies.
Why Some Sites Are Much Harder to Hack
The usual ways in go after four things most sites have. Some simpler sites have none of them:
- no database, a store of texts and settings where harmful code can be slipped in;
- no login page where passwords can be guessed;
- no plugins or themes with other people’s flaws;
- no program on the server that needs updating.
A site made of ready-made pages is stored as a set of finished files, not as a program on a server. It has no login page, no programs in which an attacker could look for flaws, and nothing to update. The most common ways in don’t work on it.
What’s still possible. A determined attacker could try to break into the hosting, or to steal your domain, your site’s address. An attacker could also flood the site with requests to stop it from working. These things happen less often, and they’re harder to pull off.
We lower these risks. Cloudflare’s network soaks up the flood before it reaches your site. We also help you turn on two-step login for your Cloudflare account. We do the same for your account at the registrar, the company where you bought your domain. But no setting can guarantee that a domain will never be stolen.
Think of it as a house. A WordPress site is like a house with lots of doors. Every door (a plugin) has to be locked and checked. A site made of ready-made pages is like a house with no doors to break in through. What’s left is the neighborhood itself: the hosting. And that neighborhood is guarded by the company that stores the site.
No site is completely unhackable. But a site made of ready-made pages doesn’t have the most common weak spots.
Related: Why your website doesn’t need to be complicated — a simple site is also harder to hack.
If Your Site Has Been Hacked: What to Do Right Now
- Take the site offline. For now, put up a “down for maintenance” page instead, or switch the site off altogether. A hacked site can harm visitors and damage your reputation even more.
- Change all your passwords. For your hosting, your site’s login, the database, your email and your access to the files on the server. Assume strangers already know every one of them.
- Contact your developer or your hosting company. They can find out how the site was hacked, clean it up and restore it from a backup.
- Restore the site from a copy made before the break-in. If you have such a copy, restore the site from it. If not, the site has to be cleaned by hand, which is slow and expensive.
- Scan the site for harmful code. A special program finds and removes whatever the attack left behind.
- Ask Google to check the site again. Once the site is clean, send a request through Google Search Console, Google’s free service for website owners. The warning is removed once Google is satisfied the site is safe.
- Tell your clients if their data was affected. In the EU, the GDPR requires it when the risk to them is high (Art. 34). If you’re unsure whether the risk is high, consult a professional.
Check Your Site: Five Points
Before you close this page, check five things:
- The password for my site’s login is long and not used anywhere else. It isn’t “password123” or my name.
- I know which plugins are on my site, and they’re all up to date.
- My website software (WordPress or another) is on the latest version.
- I have a recent backup copy of my site that I can restore it from.
- My site’s address starts with https://, and the browser doesn’t show “Not secure” next to it.
If two or more of these aren’t true for your site, it has weak spots an attacker could use today.
FAQ
How can I tell if my site has been hacked?
Here are the signs:
- your home page looks different from usual;
- pages or links have appeared that you didn’t make;
- Google warns that your site may be hacked;
- far fewer people visit your site all of a sudden;
- clients complain that your site opens other people’s pages;
- your hosting company has written to you about a security problem;
- your emails have stopped arriving: your server may be sending spam.
If you suspect a hack, look for warnings in Google Search Console. And scan your site right away with a program that looks for harmful code.
Can a site made of ready-made pages be hacked?
Not in the most common ways. It has no database to slip harmful code into, no login page, and no plugins with flaws. Other risks remain: a break-in at the hosting company, a stolen domain, a flood of requests to stop the site from working. We lower those risks. Cloudflare’s network soaks up the flood of requests. And we help you turn on two-step login for your Cloudflare and registrar accounts. No site is completely unhackable. But a site made of ready-made pages doesn’t have the most common weak spots.
Is WordPress more dangerous than other website software?
WordPress itself is fairly well protected: a large team works on it. The trouble is the plugins. There are a huge number of them, of very different quality, and some are abandoned or badly written. Every plugin is a possible door for an attacker. So a WordPress site needs constant care: updating plugins, scanning for harmful code, keeping up with new weak spots. If you don’t have the time or the know-how, it’s simpler to choose a site that needs none of this.
How much does it cost to fix a hacked site?
It depends on what was damaged. If you have a clean copy, the work is to restore the site from it, check it, change the passwords and ask Google to check it again. If there’s no copy, the site has to be cleaned by hand, which takes much longer and costs much more. If personal data was stolen, there may be legal costs on top. Protecting a site in advance costs far less than fixing it afterward.
Bottom Line
A hack isn’t just a technical fault. It can cost you clients, your place in search and your reputation. The cheapest protection is to choose a site that doesn’t have the most common weak spots in the first place.
Want a site that’s hard to hack? We build sites made of ready-made pages. Your site is stored with Cloudflare, in an account in your name. There’s no database, no plugins and no login page on our sites. Where your site is stored →
Worried your current site is vulnerable? If you’re thinking of rebuilding it as a site made of ready-made pages, we’ll take a free look at it first.