Mon – Fri, 9AM – 5PM
47 Deerhurst Grove, Hull, HU7 4QE

How to Secure Your Website: Best Practices for Keeping Your Site Safe

Every business website is a target, whatever its size. Most attacks are not aimed at you personally: automated bots scan the internet around the clock for out-of-date software, weak passwords and misconfigured servers, and a small business site is often easier to break into than a large one.

The good news is that a handful of well-established practices block the vast majority of these attacks. Below are the five essentials to secure your website, followed by the extra steps that turn a hack from a disaster into an inconvenience, and the UK rules every business website owner should know.

Implement Strong Password Policies

Stolen and guessed passwords are still one of the most common ways into a website. A clear password policy for everyone with access to your site, its hosting account and your domain registrar closes that door.

A modern password policy should include the following:

  1. Length over complexity. Use passwords of at least 12 characters, or a passphrase. The UK National Cyber Security Centre (NCSC) recommends joining three random words, which is both strong and memorable.
  2. One password per account. Never reuse a password, so a breach on another site cannot be used to log into yours.
  3. Use a password manager. It generates and stores unique passwords, so nobody needs to remember them or write them down.
  4. Turn on two-factor authentication (2FA) for your website admin, hosting control panel, domain registrar and email. Even if a password leaks, the attacker still cannot log in.
  5. Change passwords when there is a reason to, such as a suspected breach or a staff member leaving, rather than forcing changes on a fixed schedule, which current NCSC guidance advises against.
  6. Block easily guessed passwords such as names, birthdays, “password123” or your company name.
  7. Limit login attempts so bots cannot try thousands of passwords against your login page.
  8. Train your team to spot phishing emails that try to trick them into entering their login details on a fake page.

Use Secure SSL Certificates

An SSL certificate (strictly speaking, TLS, its modern successor) encrypts the connection between your visitors’ browsers and your web server. It is what puts the padlock and https:// in the address bar, and it stops anyone on the same network, such as public Wi-Fi, from reading or altering the data being sent.

Certificates are issued by Certificate Authorities. Free, automatically renewing certificates from Let’s Encrypt are now standard with most good hosts, so there is no reason for any page on your site to load over plain http://.

To get the most from your certificate:

  • Redirect every http:// address to https://, and enable HSTS so browsers always use the secure version.
  • Make sure the certificate renews automatically. Certificate lifetimes are getting shorter, and an expired certificate shows visitors a full-page security warning.
  • Fix “mixed content” warnings, where a secure page still loads images or scripts over http://.

HTTPS also matters for trust and visibility: browsers label plain http:// pages as “Not secure”, and Google uses HTTPS as a ranking signal. Bear in mind what it does not do, though. A padlock proves the connection is encrypted, not that the site behind it is safe, which is why it is only one layer of your security.

Secure your website: infographic with hacking statistics around a padlocked browser

Monitor Your Website for Vulnerabilities

Vulnerabilities are weaknesses that attackers can exploit, such as a plugin with a known security flaw, a misconfigured server or an exposed admin page. New ones are discovered every week, so security is something you monitor, not something you set up once.

  • Run regular vulnerability scans. Automated tools check your site against databases of known flaws in your CMS, plugins and themes. For WordPress, security plugins such as Wordfence or Solid Security, or a service such as Patchstack, will alert you when something you run has a known issue.
  • Scan for malware. Infected sites often look normal to the owner while redirecting visitors or sending spam in the background.
  • Watch your logs and alerts for repeated failed logins, new admin users you did not create and unexpected file changes.
  • Set up uptime monitoring so you know within minutes, not days, if your site goes down or is defaced.
  • Check Google Search Console. Its Security Issues report tells you if Google has detected hacked content or malware on your site.

For custom-built websites and web applications, add periodic code reviews or a penetration test, where a specialist actively tries to break in, particularly before launching new features that handle customer data.

Use Firewalls and Other Security Measures

A firewall filters traffic and blocks requests that match known attack patterns. For a website, the most useful type is a web application firewall (WAF), which sits in front of your site and stops malicious requests, such as SQL injection, cross-site scripting and brute-force login attempts, before they reach your server.

WAFs are available as cloud services such as Cloudflare or Sucuri, through many hosting providers, or as security plugins. A cloud-based WAF has the added benefit of absorbing traffic floods (DDoS attacks) that would otherwise take a small server offline.

Other measures that work alongside a firewall:

  • Security headers, such as Content-Security-Policy and X-Frame-Options, which tell browsers to block common attacks like clickjacking and injected scripts.
  • Secure connections for file access: use SFTP or SSH keys instead of plain FTP, which sends passwords unencrypted.
  • Protected admin areas, for example by restricting the login page to known IP addresses or adding CAPTCHA to it.
  • Email authentication with SPF, DKIM and DMARC, so criminals cannot easily send phishing emails that appear to come from your domain.

Regularly Update Your Website and Plugins

Outdated software is the single most common way websites are compromised. When a security fix is released, the details of the flaw usually become public at the same time, and bots start scanning for unpatched sites within hours.

  • Update your CMS core promptly. WordPress installs minor security releases automatically by default; keep that switched on and apply major updates soon after release.
  • Update plugins and themes as soon as security fixes are available, ideally testing on a staging copy first. WordPress plugins are the source of most WordPress vulnerabilities.
  • Delete anything you do not use. Deactivated plugins and old themes can still be exploited if they remain on the server.
  • Replace abandoned software. If a plugin has not been updated in a year or more, find a maintained alternative.
  • Keep your hosting environment current, including a PHP version that still receives security updates.

The same applies to bespoke systems: outdated software that can no longer be patched is a growing risk to the data it holds. If keeping on top of updates is a struggle, a website maintenance plan hands the job to someone who checks for them every week.

Beyond the Essentials: Backups and Access Control

The five practices above make an attack far less likely to succeed. These two make sure that, if one ever does, the damage is limited and you can recover quickly.

Back Up Your Website and Test the Backups

A recent, working backup is the difference between restoring your site in an hour and rebuilding it from scratch. Follow the 3-2-1 backup rule: three copies of your data, on two different types of storage, with one kept off-site, away from your hosting account.

  • Back up both your files and your database, automatically. Daily is a sensible default for most business sites; more often if you take orders or bookings.
  • Keep several weeks of backups, so you can go back to a point before an infection that went unnoticed for a while.
  • Test a restore every few months. A backup you have never restored is only a hope.

Control Who Has Access

Every login is a potential way in, so keep the number of accounts, and what each one can do, to a minimum.

  • Give each person their own account. Never share logins between staff or with suppliers.
  • Use the lowest role that lets someone do their job: an editor does not need administrator rights.
  • Remove accounts promptly when staff or contractors leave, and review the user list every few months.
  • Avoid obvious administrator usernames such as “admin”.

What to Do If Your Website Is Hacked

Acting quickly and in the right order limits the damage:

  1. Put the site into maintenance mode or take it offline, so visitors are not exposed to malware or scam pages.
  2. Contact your hosting provider and your web developer straight away.
  3. Change every password connected to the site: CMS users, hosting, database, FTP/SFTP, domain registrar and email.
  4. Restore a clean backup from before the attack, then update everything immediately so the same weakness cannot be used again.
  5. Find out how the attackers got in, for example from logs, a malware scan or your developer, and close that gap.
  6. If Google has flagged your site, request a review in Search Console once it is clean.
  7. Decide whether you need to report the incident (see below), and report the cyber crime to the police through Report Fraud (in Scotland, call 101).

UK Rules and Standards: UK GDPR and Cyber Essentials

If your website collects personal data, whether through contact forms, customer accounts, bookings or newsletter sign-ups, website security is also a legal duty. UK GDPR requires “appropriate technical and organisational measures” to protect that data. If a breach is likely to put people’s rights at risk, you must report it to the Information Commissioner’s Office (ICO) within 72 hours of becoming aware of it. Our plain-English guide to UK GDPR for business websites covers your wider obligations.

Cyber Essentials is the UK government-backed scheme, run by the NCSC, that certifies a business has the basic protections in place. Its five technical controls (firewalls, secure configuration, user access control, malware protection and security update management) closely match the practices in this guide. Certification reassures customers, is required for some public sector contracts, and Cyber Essentials Plus adds an independent technical audit.

Website Security FAQs

Is my small business website really a target?

Yes. Most attacks are automated, and bots do not check the size of a business before trying known exploits and common passwords. Small business sites are often targeted precisely because they are less likely to be kept up to date.

Does an SSL certificate make my website secure?

No, not on its own. SSL encrypts data travelling between the browser and your server, but it does nothing to stop someone logging in with a stolen password or exploiting an outdated plugin. It is one essential layer, not the whole solution.

How often should I update my website?

Check for updates at least weekly and apply security updates as soon as they are released. Larger feature updates can wait a few days so you can test them on a staging copy of your site first.

Do I need a security plugin for WordPress?

A reputable security plugin or a cloud firewall is a sensible extra layer, adding malware scanning, login protection and alerts. It does not replace updates, strong passwords and backups, which matter far more.

Website Security Checklist

  • Unique, long passwords stored in a password manager
  • Two-factor authentication on your admin, hosting, domain and email accounts
  • HTTPS on every page, with automatic certificate renewal
  • Vulnerability and malware scanning with alerts
  • A web application firewall and login protection
  • CMS, plugins, themes and PHP kept up to date, with unused ones removed
  • Automatic, off-site backups that you have tested
  • Individual user accounts with the lowest role needed
  • A plan for what to do if the site is hacked

Securing your website is not a one-off job, but it does not need to be complicated either. Work through the checklist above, put the basics on a regular schedule, and you will be ahead of the vast majority of sites that attackers target every day. If you would like help reviewing your site’s security or keeping it maintained, get in touch with our team.

Keep Reading

Related Articles

View All Articles