Common Website Hacks and How to Avoid Them

Most small business owners picture a hacker as someone in a hoodie targeting their website personally. The reality is duller and more annoying. Automated bots scan thousands of sites an hour looking for the same handful of weaknesses, and yours gets caught in the net like everyone else’s.

This guide covers the common website hacks we see on Australian small business sites, how each one works in plain terms, and the practical steps that stop most of them. It’s written for owners and managers, not developers, so you’ll be able to act on it or hand it to whoever looks after your site.

Why Small Business Websites Get Targeted

Attackers don’t care how big you are. They care how easy you are. A small site on a shared server with an outdated plugin is far cheaper to break into than a bank, and a hacked site is useful to them in several ways: sending spam, hosting phishing pages, redirecting your visitors to dodgy sites or mining cryptocurrency on your server.

The Australian Signals Directorate’s annual cyber threat reports consistently show small businesses carrying real financial pain from cybercrime, with average incident costs running into the tens of thousands of dollars once you add downtime, cleanup and lost trade.

The good news: these attacks follow patterns, and blocking the patterns blocks most of the risk.

Common Website Hacks at a Glance

Here’s a quick comparison before we go through each one.

Attack How it gets in Typical sign Main defence
Outdated plugin or theme exploit Known flaw in old software Unknown admin users, odd files Updates, fewer plugins
Brute force and credential stuffing Guessed or leaked passwords Lockouts, login spikes 2FA, strong passwords, rate limits
Malware injection Weak file permissions or old code Redirects, spam pages Scanning, clean backups
SQL injection Poorly coded forms Data errors, defaced pages Updated code, WAF
Cross-site scripting (XSS) Unsafe input fields Strange pop-ups, stolen sessions Input validation, updates
Phishing and admin takeover Tricking a person Unexpected password resets Staff training, 2FA
DDoS and bot floods Traffic overload Site slow or offline CDN and firewall

Outdated Plugins and Themes

This is the biggest one by a wide margin. Security researchers tracking WordPress consistently find that the overwhelming majority of reported vulnerabilities sit in plugins and themes, not in WordPress core itself. When a flaw is published, attackers run automated scans for sites still using the old version, often within hours.

A typical scenario: a Gold Coast tradie’s site runs a contact form plugin that hasn’t been updated in 14 months. A flaw is disclosed, a bot finds the site, and a hidden admin account appears. The owner only notices when customers report spam emails.

How to avoid it:

  • Turn on automatic updates for security releases of plugins you trust.
  • Delete plugins and themes you aren’t using. Deactivated isn’t the same as safe.
  • Avoid abandoned plugins. If the last update was over a year ago, find an alternative.
  • Stick with plugins listed on WordPress.org that show active installs and recent updates.

Regular patching is the least glamorous job in web security, and it prevents more hacks than anything else. A website maintenance plan takes it off your plate entirely.

Brute Force and Credential Stuffing

Brute force means a bot tries thousands of password guesses against your login page. Credential stuffing is smarter: it takes email and password combinations leaked in other breaches and tries them on your site, betting that you reused a password.

If your admin username is “admin” and your password has appeared in a breach, you’re in trouble within minutes.

How to avoid it:

  • Use a unique password of 14 or more characters from a password manager.
  • Enable two-factor authentication (2FA) on every admin and editor account.
  • Limit login attempts and block repeat offenders.
  • Don’t use “admin” as a username, and remove accounts for staff who’ve left.

Malware Injection and Backdoors

Malware injection is when attackers slip malicious code into your files or database. Sometimes it’s visible: your site redirects to a pharmacy spam page. More often it’s hidden. Google search results for your business show Japanese product listings, or the code only fires for visitors arriving from Google so you never see it when you check.

The nasty part is the backdoor. Even after you remove the visible malware, a hidden file lets the attacker back in. That’s why a cleanup that only deletes the obvious problem often ends in reinfection two weeks later.

How to avoid it:

  • Run a malware scanner that checks file changes, not just known signatures.
  • Keep file permissions tight so a compromised plugin can’t rewrite everything.
  • Store backups off the server, and test a restore at least once.
  • Monitor in Google Search Console for security issues and manual actions. Google explains how to read these reports in its Search Central documentation.

SQL Injection and Cross-Site Scripting

SQL Injection

SQL injection happens when a form or URL parameter lets an attacker slip database commands into your site. Done well, they can read customer data, create admin users or wipe content.

Most modern, well-maintained platforms guard against this, so it usually shows up through old custom code or a poorly built plugin. If your site was built years ago by someone who’s no longer around, it deserves a proper review.

How to avoid it:

  • Keep custom code under review by a developer who understands prepared statements and input sanitising.
  • Use a web application firewall (WAF) that filters malicious requests before they reach your site.
  • Remove old forms and scripts you no longer use.

Cross-Site Scripting (XSS)

XSS lets an attacker plant a script that runs in other people’s browsers when they view your page. It might steal login sessions, show fake login boxes or redirect visitors. Comment fields, search boxes and contact forms are the usual entry points.

The defence sits mostly with developers. As an owner, keep software updated, limit who can post unfiltered content, and turn off features you don’t use, like open comments.

Phishing, Account Takeover and DDoS Attacks

Phishing and Admin Account Takeover

Plenty of hacks never touch your code. Someone gets an email that looks like it’s from your hosting company, clicks the link and types in the admin password. Now the attacker is logged in as you.

Common lures include fake invoice emails, “your domain is expiring” notices and “unusual login detected” messages. They’re polished enough that careful people fall for them.

How to avoid it:

  • Go to your host or registrar by typing the address yourself, never through an email link.
  • Use 2FA everywhere, including your domain registrar, hosting account and email.
  • Give staff the lowest access level they need. A blog writer doesn’t need administrator rights.
  • Agree a simple rule: any unexpected request to change a login, bank detail or DNS record gets confirmed by phone.

DDoS Attacks and Bot Floods

A distributed denial-of-service (DDoS) attack floods your site with traffic until it slows to a crawl or falls over. For a small business it often arrives as a nuisance attack or a ransom demand, and it can hit hardest during a sale or busy season.

A content delivery network and firewall absorb most of this before it touches your server. Cloudflare’s learning centre has a good plain-English explanation of how these attacks work and how filtering stops them. Quality hosting matters too, and a managed WordPress hosting setup usually includes server-level protection.

The Basic Defence Stack: Build in Layers

No single tool stops every attack, so aim for layers. If one fails, the next catches it.

  1. Updates. Core, plugins, themes and PHP version, all current.
  2. Access control. Unique passwords, 2FA, minimal user roles.
  3. Firewall and CDN. A WAF filtering bad traffic before it reaches you.
  4. Backups. Daily, stored off-site, with a tested restore.
  5. Monitoring. Uptime alerts, file change detection and Search Console notifications.
  6. HTTPS and headers. A valid SSL certificate and sensible security headers.

If this list feels like a lot to manage yourself, that’s fair. Our website security services cover each layer, so you aren’t relying on memory and good intentions.

What to Do If You’ve Been Hacked

  1. Don’t delete anything yet. You may need evidence of how they got in.
  2. Take the site offline or into maintenance mode to protect visitors.
  3. Change every password: WordPress, hosting, FTP, database, email and domain registrar.
  4. Restore from a clean backup taken before the infection, then update everything immediately.
  5. Find the entry point. If you don’t, you’ll be hacked again.
  6. Check Google Search Console and request a review if your site was flagged.
  7. Tell customers if their data may have been exposed. In Australia, the Notifiable Data Breaches scheme can apply to businesses covered by the Privacy Act.

If you’re not sure whether you’ve been compromised, our guide to the signs your website has been hacked walks through what to look for.

Hacks Hurt Your Search Rankings and Ad Spend Too

Security isn’t only an IT issue. A compromised site can drop out of Google results, show a “this site may be hacked” warning, or get blocked by browsers. Your SEO work can take months to recover, and any Google Ads traffic sent to a flagged site is money wasted. If your site is due for a rebuild, a secure foundation from a web design Gold Coast team costs far less than repairing the damage afterwards.

The Bottom Line

Most hacks aren’t clever. They exploit old software, weak passwords and rushed decisions. Keep everything updated, protect logins with 2FA, put a firewall in front of your site and keep tested backups off-site, and you’ve closed the doors that nearly every automated attack tries first.

The next step is simple: log in today, check how many plugins are out of date, and turn on 2FA for every admin. Ten minutes now beats ten days of cleanup later.


Share Article