· Updated · No. 231
Cyber security involves making attacks harder, limiting damage if they succeed, and enabling recovery. This guide covers personal computers, websites and businesses, with practical controls for each.
How to protect a computer, website or business
Effective cyber security is about making it harder for an attacker to get in, limiting what they can do if they succeed, and ensuring you can recover if something goes wrong.
The most useful protections are straightforward. You don't need to be a security specialist to make a computer significantly harder to attack.
Keep software updated
Install operating-system, browser and application security updates promptly. Remove software you no longer use. Updates often fix known weaknesses that attackers already understand.
Use built-in security protection
On Windows, keep Microsoft Defender and the firewall enabled unless a suitable managed alternative is in place. Treat unexpected security warnings seriously.
Protect accounts
Use unique passwords, preferably managed by a reputable password manager. Enable multi-factor authentication on email, banking and other important accounts.
Make backups
Keep copies of important documents and photos on a separate device or secure backup service. Make sure ransomware cannot easily delete every copy, and periodically test that files can be restored.
Be cautious with messages
Verify unexpected payment requests and sign-in links. Don't open attachments or run software simply because a message appears to come from someone you know.
For a Windows computer, these measures provide a strong starting point. The UK's National Cyber Security Centre has additional advice in its cyber security guidance for individuals and families National Cyber Security Centre
A website needs protection at several levels: the web application, its server, its database, administrative accounts and the hosting provider.
A site can have a padlock in the browser and still be vulnerable. HTTPS protects information in transit; it does not prove that the website's code or access controls are secure.
The essential website safeguards
A. Secure administrator accessB. Protect the database
Use parameterised SQL queries, give the website's database account only the permissions it needs, keep database credentials outside publicly accessible files, and prevent direct public access to database services.
C. Validate and authorise requests
Validate incoming data on the server, escape output appropriately, use CSRF protection for sensitive actions and check permissions for every record being read or changed.
D. Maintain the software
Update PHP, libraries, frameworks, plugins and server components. Remove abandoned dependencies and disable features you do not need.
E. Monitor and recover
Keep logs of logins, permission failures and important changes. Back up both the database and website files, and test that you can restore them.
These measures address several of the risks highlighted in the OWASP Top 10:2025, including broken access control, security misconfiguration, software supply-chain failures, injection and authentication failures. OWASP Top 10:2025
A practical PHP and MySQL example
Suppose your website has a URL that displays a booking by its ID:
/booking.php?id=1234
A common mistake is to assume that a user who is logged in can access any booking simply by changing the number in the URL.
A safer application checks both authentication and ownership or authorised role on the server:
// Conceptual example: the user must be authorised
// to view this particular booking.
$stmt = $pdo->prepare(
'SELECT * FROM bookings
WHERE booking_id = :id
AND company_id = :company_id'
);
$stmt->execute([
'id' => $bookingId,
'company_id' => $authorisedCompanyId
]);
$booking = $stmt->fetch(PDO::FETCH_ASSOC);
This illustrates tenant isolation: a customer or business operating under one company must not be able to retrieve another company's booking merely by changing an identifier.
The example assumes that $authorisedCompanyId has already been established securely from the authenticated user's permissions. It must not simply be copied from an untrusted request parameter.
For a multi-tenant booking platform, this is especially important. A single missing authorisation check could expose records belonging to multiple businesses.
Six website checks worth carrying out
Website security checklist
This checklist is a starting point, not a penetration test or guarantee of security.
A business needs more than secure computers. It must protect its people, accounts, suppliers, customer information and ability to continue trading after an incident.
The UK's National Cyber Security Centre (NCSC) has a Small Organisations Guide to Cyber Security, which covers account security, devices, backups and recognising attacks.
The six business priorities
No security arrangement eliminates all risk. A business should be prepared for the possibility of a compromised account, stolen data or ransomware.
First: contain the problem
Isolate affected devices or systems where appropriate. Contact your IT or incident-response provider. Do not assume that deleting suspicious files solves the problem.
Second: establish what happened
Preserve logs and other evidence. Determine which accounts, systems and data were affected, and whether the attacker may still have access.
Third: recover safely
Close the entry point, secure credentials, rebuild affected systems where necessary and restore from verified backups.
Fourth: meet reporting obligations
In the UK, a personal data breach may need to be reported to the Information Commissioner's Office (ICO), generally within 72 hours of becoming aware of it where the legal reporting threshold is met. Other contractual or regulatory reporting requirements may also apply.
Priorities depend on what you are protecting. For a small business, I would generally start with email and administrator accounts, multi-factor authentication, tested backups and software updates. For a website, I would also review authorisation checks, database access and the ability to restore the site quickly.
The NCSC's Cyber Action Toolkit
offers small businesses a structured route through foundational, improving and enhanced security measures.
Recommendation: treat this as a practical programme rather than trying to install lots of security products at once. Start with the measures that prevent account takeover and data loss, then check the website and business processes systematically.
The plan below uses the UK government's Cyber Essentials controls as its foundation: firewalls, secure configuration, updates, access control and malware protection. National Cyber Security Centre
Microsoft documents the Windows Security checks and ransomware protections in its Windows security guidance Microsoft Support
If you find an unknown administrator, suspicious login or unexplained file changes, investigate before simply deleting evidence. If you suspect an active compromise, prioritise containment and expert assistance.
For a PHP and MySQL website, concentrate on access control, database security, file integrity and recovery. OWASP identifies broken access control as a leading web application security risk.OWASP Top 10:2025
A. Review the hosting environmentIn cPanel, check the following. Menu names can vary by hosting provider.
Don't change file permissions recursively or change PHP versions on a live website without checking the application's requirements and having a working backup.
B. Review the PHP codeThese are the checks I would prioritise in a PHP application:
| Check | What to verify |
|---|---|
| SQL injection | User input is passed through prepared statements rather than concatenated into SQL. |
| Login security | Passwords use PHP's password-hashing functions; login attempts are appropriately rate-limited. |
| Session security | Session IDs are regenerated after login; cookies use Secure, HttpOnly and appropriate SameSite settings. |
| Access control | Every administrative action checks authentication, role and permission on the server. |
| Tenant isolation | A user belonging to one company cannot read or modify another company's records. |
| File uploads | Uploads are size-limited, type-checked and stored so uploaded files cannot execute as scripts. |
| Error handling | Public error pages do not expose passwords, database details, file paths or stack traces. |
| Secrets | Database passwords, API keys and SMTP credentials are not exposed in public files or source-control repositories. |
For a multi-tenant booking system, test tenant isolation particularly carefully. Checking a user's company only when displaying the page is insufficient: the server must also enforce that boundary on every database operation that reads or changes tenant data.
C. Check the databaseSafe testing rule: test against a staging copy or a separate test database wherever possible. Do not perform destructive security tests against a live customer database.
Accounts and responsibilities
Maintain a list of people with access to email, computers, hosting, finance and customer records. Identify who approves payments and who can restore systems.
Payment fraud
Require independent verification of supplier bank-detail changes and a second approval for significant payments. Never rely solely on contact details in the message requesting the change.
Monitoring
Ensure you can identify repeated failed logins, new administrator accounts, unexpected file changes and unusual activity involving customer records.
Incident plan
Write down who to contact, where clean backups are held, how to contact staff if email fails and which business services must be restored first.
At least once, run a simple recovery exercise:
Record the date, result and any problem found. A backup that has never been restored is an untested assumption, not a proven recovery plan.
Use this checklist to track what you have actually verified. Leave an item unchecked if you are unsure; that is a useful finding in itself.
Security action trackerWindows computer
Website and hosting
Business
If you discover evidence of an active compromise, unexplained administrator access, suspected data theft or ransomware, stop routine changes and get appropriate incident-response help. In the UK, the NCSC's guidance for organisations explains how to respond and recover.
For a longer-term standard, consider Cyber Essentials. Its five technical controls provide a practical baseline for protecting a business against common internet-based attacks.National Cyber Security Centre<
My recommendation: begin with account security and verified backups, then review the website's code and hosting configuration. Those steps give you a concrete starting point without making risky changes to a live system.
Comments
No answered comments yet. Yours could be the first.
Add a comment
Your email address is needed so we can reply, and is never shown on the site. Comments appear here once they have been answered.