ServerNeed — This Year's Best Offers For You

ServerNeed — More Than Hosting
Security

Website Security Basics:10 Essential Practices for Site Owners

The ten website security practices that matter most, in order of impact: updates, strong logins with 2FA, HTTPS, least privilege, backups, isolation, secure code, monitoring, an incident plan and secure email.

5 min read 11 views
Person looking through a server rack
Table of Contents
  1. 1. Keep everything updated
  2. 2. Protect every login
  3. 3. Use HTTPS everywhere
  4. 4. Apply least privilege
  5. 5. Keep tested, off-site backups
  6. 6. Choose hosting with proper isolation
  7. 7. Build and configure securely
  8. 8. Add protective layers and monitoring
  9. 9. Have an incident plan
  10. 10. Secure your domain and email
  11. Where most website compromises actually start
  12. A one-page checklist
  13. Frequently Asked Questions
  14. Related reading
  15. Sources

Website security is mostly about doing ten basic things consistently. In order of impact for a typical business site: keep software updated, protect every login with strong passwords and two-factor authentication, use HTTPS everywhere, give people only the access they need, keep tested off-site backups, use hosting with proper isolation, follow secure development practices, monitor for problems, have an incident plan, and secure your domain and email. Most compromises exploit a failure in one of these, not an exotic attack.

1. Keep everything updated

Outdated software is the most common entry point. Update your CMS, plugins, themes, frameworks and libraries, and make sure your host keeps the server's PHP and system packages current. Remove anything unused; inactive code can still be exploited. WordPress users should take a backup first and follow WordPress's own guide to updating WordPress.

2. Protect every login

  • Use long, unique passwords stored in a password manager. CISA's advice on using strong passwords is a good starting point for staff.
  • Turn on two-factor authentication for the website admin, hosting control panel, domain registrar and email.
  • Limit repeated login attempts, so password-guessing tools are slowed down or blocked.

3. Use HTTPS everywhere

Serve the whole site over HTTPS with a valid certificate, redirect HTTP to HTTPS, and fix mixed content (pages loaded over HTTPS that still pull images or scripts over HTTP). MDN explains mixed content and how browsers treat it.

4. Apply least privilege

Give each person and system only the access they need: editors do not need administrator rights, applications do not need database superuser accounts, and former staff and contractors should lose access immediately. Review user lists regularly.

5. Keep tested, off-site backups

Backups are your recovery plan for hacks, mistakes and hardware failures. Store copies away from the hosting account, keep several versions, protect them from deletion, and test restores. A backup that ransomware or an attacker can delete along with the site is not a backup.

6. Choose hosting with proper isolation

On shared hosting, accounts should be isolated so one compromised site cannot reach another. Keep separate sites in separate accounts where possible. On a VPS, securing the server itself is your job unless it is managed; shared hosting vs VPS explains what that responsibility involves.

7. Build and configure securely

  • Validate input and escape output to prevent injection and cross-site scripting.
  • Use security headers such as HSTS and a Content Security Policy; the OWASP HTTP Headers Cheat Sheet lists recommended values.
  • Keep secrets (API keys, passwords) out of code repositories and public files.
  • Mark session cookies Secure, HttpOnly and with a suitable SameSite value.

Developers can work through the OWASP Top 10, the most widely used list of critical web application risks.

8. Add protective layers and monitoring

  • A web application firewall filters common attacks before they reach your application.
  • Malware scanning and file-change alerts catch infections early.
  • Uptime monitoring and log review reveal unusual activity, such as a spike in failed logins.

9. Have an incident plan

Decide in advance: who to call, how to take the site offline safely, where backups are, how to reset credentials, and who must be informed. A short written plan saves hours during an incident.

10. Secure your domain and email

Your domain and email are the keys to everything else: password resets, verification codes, customer trust. Protect the registrar account with 2FA and a registrar lock, configure SPF, DKIM and DMARC (for a cPanel mailbox the steps are in how to create a business email with your domain), and train staff to recognise phishing.

Where most website compromises actually start

Looking at how real incidents begin helps prioritise. Common starting points include:

Starting point Example Which practice prevents it
Outdated plugin or library A known vulnerability in a form or slider plugin 1. Updates
Reused or weak password Credential stuffing on the admin login 2. Unique passwords and 2FA
Phished account Fake "hosting suspended" email steals the panel login 2. 2FA, 10. Phishing awareness
Too many privileged users A former contractor's admin account abused 4. Least privilege
Neighbouring site in the same account One compromised site infects others 6. Isolation
Injection or access-control flaw in custom code Customer data exposed through an ID in the URL 7. Secure development
Expired or hijacked domain Website and email taken over 10. Domain security

Most entries are prevented by the first few practices on the list, which is why they come first.

A one-page checklist

  • All software updated; unused plugins and themes removed
  • Unique passwords and 2FA on admin, hosting, registrar and email
  • HTTPS everywhere
  • Least-privilege accounts; leavers removed
  • Off-site, versioned backups with a tested restore
  • Isolated hosting accounts or a hardened server
  • Security headers and secure coding practices
  • Firewall, malware scanning and monitoring
  • Written incident plan
  • Registrar lock, 2FA, SPF/DKIM/DMARC

Frequently Asked Questions

Is my small website really a target?

Yes. Most attacks are automated and scan the whole internet for known weaknesses, regardless of a site's size or fame.

Do I need a security plugin or service?

Layers like firewalls and scanners help, but they do not replace updates, strong logins and backups.

What should I do first if I can only do one thing?

Update everything and turn on 2FA for your most important accounts. Then set up off-site backups.

WordPress owners can see which security and backup plugins are worth installing in essential plugins for WordPress websites. To compare hosting, see what the ServerNeed shared hosting plans include, such as cPanel and a free SSL certificate.

Sources

Last updated 4 October 2026

View All Articles