Independent IT services, reviews and technology guidance Call: +44 7407 346327  |  Email: info@dlbjoinery.online
Web Development

Website Security Essentials: HTTPS, Security Headers and Update Hygiene

By DLB JOINERY LTD Editorial TeamPublished 17 June 20267 min read

Most website compromises are not the work of sophisticated attackers targeting a specific business. They are automated scans looking for out-of-date software, weak configuration and missing protections, then exploiting whatever they find. The good news is that a handful of well-understood measures close off a large share of that risk. This guide covers three foundations every business website should have in place: properly configured HTTPS, sensible HTTP security headers and disciplined update hygiene. None of them requires specialist tools, but each needs to be done deliberately and checked regularly.

HTTPS: more than a padlock

HTTPS encrypts traffic between a visitor's browser and your server, preventing eavesdropping and tampering on the way. Browsers now flag plain HTTP pages as not secure, and many modern browser features only work over HTTPS. Free, automated certificates have removed cost as an excuse, but simply having a certificate is not the same as having HTTPS configured well.

HTTPS configuration checklist

  • Redirect all HTTP traffic to HTTPS with a permanent redirect, on every hostname including the bare domain and the www variant.
  • Automate certificate renewal and monitor expiry dates. An expired certificate takes a site offline in practice, because browsers display a full-page warning.
  • Disable outdated protocols. TLS 1.2 and TLS 1.3 should be the only versions offered; older SSL and TLS versions have known weaknesses.
  • Use modern cipher suites that support forward secrecy. Most hosting providers and reverse proxies offer a recommended "modern" or "intermediate" profile.
  • Remove mixed content. Images, scripts or stylesheets loaded over HTTP on an HTTPS page weaken protection and may be blocked by browsers.
  • Cover every subdomain, including staging, mail and customer portal hostnames, not just the main website.

Free online TLS testing services will grade your configuration and highlight weak protocols or certificate chain problems. Run one after any server change.

HTTP security headers

Security headers are instructions your server sends with each response, telling the browser how to behave. They cost nothing to add and defend against whole classes of attack, particularly cross-site scripting, clickjacking and protocol downgrade.

Strict-Transport-Security (HSTS)

HSTS tells browsers to use HTTPS for your domain for a set period, even if a user types an HTTP address or follows an old link. Start with a short max-age while testing, then increase it once you are confident every subdomain supports HTTPS. Only add includeSubDomains and consider preloading when that is true across the whole domain, because mistakes are slow to reverse.

Content-Security-Policy (CSP)

CSP is the most powerful and most involved header. It defines which sources of scripts, styles, images and other resources the browser may load. A strict policy can neutralise many cross-site scripting attacks because injected scripts are not permitted to run. Introduce it gradually:

  1. Deploy the policy in report-only mode using Content-Security-Policy-Report-Only.
  2. Collect and review violation reports for a few weeks to find legitimate resources you missed.
  3. Remove inline scripts where possible, or use nonces or hashes for those you must keep.
  4. Switch to enforcing mode once reports show only genuine problems.

Other headers worth setting

  • X-Content-Type-Options: nosniff stops browsers guessing file types, which prevents some content-type confusion attacks.
  • Frame protection, through the CSP frame-ancestors directive or the older X-Frame-Options header, stops other sites embedding yours in a frame for clickjacking.
  • Referrer-Policy, typically strict-origin-when-cross-origin, limits how much of your URLs is shared with other sites.
  • Permissions-Policy disables browser features your site does not use, such as camera, microphone or geolocation access.

Headers can be added in your web server configuration, a reverse proxy, a CDN or, for some platforms, through the application itself. Setting them at the edge is usually the most consistent approach because it applies to every response.

Update hygiene: the habit that prevents most breaches

Unpatched software is one of the most common routes into a website. Content management systems, plugins, themes, server operating systems, language runtimes and JavaScript dependencies all receive security fixes, and automated tools begin scanning for newly disclosed vulnerabilities quickly after they are published.

Build an inventory first

You cannot patch what you do not know about. List every component that makes up your website: the CMS and its version, each plugin and theme, the server operating system, the web server, the database, the language runtime and any front-end packages. Note who is responsible for each.

A sustainable update routine

  1. Subscribe to security advisories for your CMS and key components so you hear about critical fixes promptly.
  2. Apply critical security updates quickly, ideally within days, and routine updates on a regular schedule such as weekly or fortnightly.
  3. Test on a staging copy before updating production, especially for major versions.
  4. Take a backup immediately before updating and confirm you know how to restore it.
  5. Remove what you do not use. Deactivated plugins and unused themes can still be exploitable if their files remain on the server.
  6. Replace abandoned components. A plugin that has not been updated for a long time is a liability, however useful it is.
  7. Use dependency scanning in your code repository so vulnerable packages are flagged automatically.

Automatic updates: pros and cons

Automatic updates close the window of exposure and remove reliance on someone remembering. The risk is that an update breaks functionality without anyone noticing. A balanced approach is to automate minor and security releases, monitor the site with uptime and visual checks, and handle major version upgrades manually with testing.

Supporting measures

HTTPS, headers and patching form the foundation, but several supporting controls make a real difference:

  • Multi-factor authentication on every administrative account, including hosting, DNS and domain registrar logins.
  • Unique administrator accounts for each person, with the least privilege they need, removed promptly when people leave.
  • Rate limiting or a web application firewall in front of login pages.
  • Regular, off-site, tested backups with more than one restore point.
  • File integrity or change monitoring to alert you to unexpected modifications.
  • Logging retained long enough to investigate an incident after the fact.

Conclusion

Website security does not have to be overwhelming. Configure HTTPS fully rather than just installing a certificate, add security headers in a measured way with CSP introduced in report-only mode first, and treat updates as a scheduled responsibility with an owner, a test environment and a backup. Review the setup every quarter, and after any significant change to your hosting or platform. These habits will not make a website invulnerable, but they move it well out of reach of the automated attacks responsible for most compromises.

DLB
DLB JOINERY LTD Editorial Team

Our consultants write and review every article based on hands-on experience delivering IT projects. Read our editorial policy.

This article is for general information only and does not constitute professional, legal or financial advice. Product features and terms change over time, so always confirm details with the vendor. See our disclaimer.