Skip to content
Free website migration on every plan, done by our team.Learn more ›
Security

The 7 most common website attacks and how to stop them

How brute-force logins, outdated plugins, SQL injection, cross-site scripting, malicious uploads, DDoS and phishing work, and the practical defences for each.

Short answer: Most attacks are automated and opportunistic. Keeping software updated, using strong unique passwords with two-factor authentication, limiting logins and uploads, keeping backups and using a firewall block the large majority of them.

1. Brute-force and credential stuffing

Bots try common passwords, or passwords leaked from other sites, on your login page. Defence: unique passwords, two-factor authentication and login rate limiting.

2. Outdated plugins and themes

Known vulnerabilities are scanned for within days of being published. Defence: update promptly and delete what you don't use. See the WordPress security checklist.

3. SQL injection

Attackers send crafted input that tricks a database into revealing or changing data. Defence: well-maintained software that uses parameterised queries, and a web application firewall.

4. Cross-site scripting (XSS)

Malicious scripts are injected into pages that other visitors load. Defence: updated software, escaping output in custom code and a strict Content Security Policy.

5. Malicious file uploads

A weak upload form lets attackers place a script on your server. Defence: restrict upload types and sizes, and scan uploads.

6. DDoS

Floods of traffic try to knock your site offline. See DDoS explained.

7. Phishing aimed at you

Fake "domain expiry" or "hosting suspended" emails try to steal your logins. Defence: check the sender, never log in from email links and use 2FA.

If you've been hit

Follow what to do in the first hour and restore from clean backups.

Frequently asked questions

Is my small website really a target?

Yes. Automated attacks don't choose by size; they look for any weakness.

Does SSL stop attacks?

SSL encrypts connections but doesn't stop attacks on your software. You need updates and good passwords too.

Do I need a security plugin?

It's a useful extra layer, especially for login protection and malware scanning.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.