1. Use HTTPS correctly
HTTPS encrypts information between a visitor’s browser and the website when configured correctly. Obtain a valid certificate, redirect HTTP pages to HTTPS and ensure internal links and embedded resources use secure URLs. Renew certificates before they expire.
Encryption in transit does not protect a compromised server or prevent an application from mishandling data. Treat HTTPS as a foundation rather than a complete security programme.
- Valid certificate
- HTTPS redirects
- No mixed-content warnings
2. Protect forms and user input
Forms should collect only information that is genuinely needed. Validate input on the server, use appropriate output encoding and avoid inserting user-supplied text directly into database queries or page markup. Client-side validation improves usability but can be bypassed.
Use established, maintained libraries and secure form-processing services. Protect sensitive actions against cross-site request forgery where relevant, limit spam and avoid exposing private submissions in public files or error messages.
- Server-side validation
- Safe output encoding and parameterised queries
- Spam and abuse controls
3. Control accounts and permissions
Use unique strong passwords and multi-factor authentication where supported, especially for hosting, domain, email and administrator accounts. Give each person only the permissions required for their role and remove access when it is no longer needed.
Do not share administrator credentials through public messages or store secrets in front-end JavaScript. Rotate credentials after suspected exposure and keep recovery email and phone details secure.
- MFA for critical accounts
- Least-privilege access
- Keep secrets out of public code
4. Update software and dependencies
Outdated content management systems, frameworks, plugins and server software can contain known vulnerabilities. Maintain an inventory of what the site uses and apply trusted updates after checking compatibility and keeping a recovery copy.
Remove abandoned themes, plugins, libraries and test files that are no longer needed. A smaller, maintained software footprint is generally easier to secure than a site containing many unused components.
- Patch supported software
- Remove unused components
- Review dependency advisories
5. Back up and prepare for incidents
Keep backups of site files, databases and important configuration. Store copies separately from the live hosting account and test restoration periodically. A backup that has never been restored is not a proven recovery plan.
If a compromise is suspected, preserve relevant logs, restrict affected credentials, contact the hosting provider and restore only from a known-clean source. Review the entry point before returning the site to service.
- Automated and off-site backups
- Test restoration
- Prepare an incident response contact list
Final thoughts
Good results come from a careful process, accurate information and clear communication. Use the guidance in this article as a starting point, check the requirements that apply to your particular device or business, and seek qualified help where a task involves safety, security or specialist equipment.
Found this article helpful?
Share this practical guide with friends and family.
Questions & Answers
Have a question about this article? Submit it below. Questions appear publicly only after review by HENAB TECH HUB.
Loading approved questions…