To protect a business website from hackers, keep its software and plugins updated, lock admin logins behind strong passwords and two-step verification, host it somewhere that patches the server, put a web application firewall in front of it, keep backups you control, and watch for changes so you notice a break-in quickly. Many attacks are automated and look for easy ways in, so closing those matters most.
This guide is about the website itself. For company-wide basics such as email, laptops and staff training, see our cybersecurity starter checklist.
How business websites usually get hacked
Many break-ins are not targeted. Automated bots scan large numbers of sites for known weaknesses and use whatever they find. The OWASP Top 10, the widely used list of web application risks, puts broken access control, security misconfiguration and software supply chain failures at the top of its 2025 edition. In plain terms, the usual causes are:
- An old plugin, theme or CMS version with a published vulnerability.
- A weak or reused admin password, often with no second factor.
- Settings left at their defaults, such as debug mode on, directory listing open or a forgotten test copy of the site.
- Forms and URLs that pass user input straight into a database query or page.
- Shared hosting or FTP accounts that too many people can reach.
The fixes below follow the same order: close the easy doors first.
The website security checklist
Use this table to brief your developer or check your own setup. The owner column is a suggestion.
| Area | What to do | Who usually owns it |
|---|---|---|
| Updates | Keep the CMS, plugins, themes and server software on supported versions. Remove unused plugins and themes. | Developer or maintenance partner |
| Admin access | One named account per person, strong passwords, two-step verification, least privilege. Remove leavers the same day. | Owner and developer |
| Hosting | A host that patches the server, isolates accounts and supports HTTPS. Use SFTP or SSH, not plain FTP. | Developer |
| Firewall | Put a web application firewall (WAF) in front of the site, at the server, as a plugin or via a reverse-proxy service. | Developer |
| Backups | Regular backups of files and database, with one copy outside the hosting account. Test a restore. | Developer, checked by owner |
| Code and forms | Validate input on the server, use parameterised database queries, encode output. | Developer |
| Headers and HTTPS | HTTPS everywhere plus security headers such as HSTS and Content-Security-Policy. | Developer |
| Monitoring | Keep access and error logs, get alerts for file changes and failed logins, verify the site in Search Console. | Developer and owner |
Updates, plugins and admin access
WordPress's own hardening guide is a good model even if your site runs on something else. It says to run the latest version because older versions stop getting security fixes, to download software only from trusted sources, to keep plugins updated and to delete the ones you do not use. Treat themes the same way. Each extra plugin is more code that can go wrong.
For logins, the same guide recommends strong passwords and two-step authentication. Add these habits:
- Give each person their own account. Shared logins make it impossible to tell who did what, or to remove one person cleanly.
- Give editors editor rights, not administrator rights.
- On WordPress, turn off the dashboard file editor with
define( 'DISALLOW_FILE_EDIT', true );inwp-config.php, so a stolen admin login cannot rewrite theme files from the browser. - Keep the hosting control panel, domain registrar and DNS accounts just as tight. Whoever controls those controls the site.
If keeping up with updates is the hard part, our monthly website maintenance checklist turns it into a routine.
Hosting, firewall and security headers
Your host handles the layer below your site. Ask whether they patch the operating system and web server, keep each customer's account separate, offer SFTP or SSH, and provide free HTTPS certificates. Our hosting comparison covers what changes when you move to a VPS, where patching becomes your job.
A web application firewall filters malicious requests before they reach your code. WordPress's hardening guide lists three ways to add one: on the web server (ModSecurity is the usual example), as a firewall plugin, or through a reverse-proxy service that sits in front of your site.
Security headers are small instructions your server sends to browsers. The OWASP HTTP headers cheat sheet recommends these:
- Strict-Transport-Security so browsers only ever use HTTPS.
- Content-Security-Policy to control where scripts can load from, including
frame-ancestorsto stop other sites framing yours. - X-Content-Type-Options: nosniff to stop browsers guessing file types.
- Referrer-Policy set to
strict-origin-when-cross-origin. - Permissions-Policy to switch off features you do not use, such as camera or microphone.
Forms, input and custom code
Contact forms, search boxes, logins and any custom feature take input from strangers. OWASP's input validation guidance gives developers three rules worth knowing as an owner:
- Validate on the server. Checks in the browser are for user feedback only, because they can be bypassed.
- Allow known-good values rather than trying to block known-bad ones.
- Validation alone is not enough. Use parameterised queries for the database and context-aware output encoding on pages, which is what stops SQL injection and cross-site scripting.
Also ask for rate limits on login and contact forms, and for file uploads to be checked and stored where they cannot run as code. If you are commissioning a new website or web application, put these in the brief so they are part of the build, not a later fix.
Backups, logs and monitoring
A good backup turns a hack from a disaster into a bad afternoon. WordPress's guide recommends regular backups that include the database, kept as dated copies in a trusted location. Keep at least one copy outside the hosting account, because a compromised or suspended account can take its backups with it. Our 3-2-1 backup rule guide shows how to set this up.
For monitoring:
- Keep web server access and error logs. They show IP addresses, times and requests, which helps you spot brute-force attempts and trace what happened.
- Set alerts for unexpected file changes and repeated failed logins.
- Verify your site in Google Search Console. If Google finds your site has been hacked or could harm visitors, it shows this in the Security issues report.
- Use uptime monitoring so you hear about defacement or downtime before customers do.

What to do if your website is hacked
Write this plan down now, with names next to each step.
- Contain it. Take the site offline or into maintenance mode if it is serving malware or phishing pages.
- Change every credential. CMS admins, hosting panel, SFTP, database, registrar and any API keys stored on the server.
- Preserve evidence. Copy the logs and the infected files before cleaning, so you can find out how they got in.
- Check whether you must report it. CERT-In's Directions of 28 April 2022 list defacement of a website or intrusion into a website among the incidents that service providers, intermediaries, data centres, body corporates and government organisations must report to CERT-In within 6 hours of noticing them or being told about them. Our CERT-In reporting guide explains who it applies to. This is not legal advice.
- Clean or restore. Restore from a backup taken before the break-in, then update everything and close the hole that was used. A restore without the fix will be hacked again.
- Request a Google review. If Search Console shows a security issue, Google asks you to fix it across the whole site, not just the sample pages, then use Request Review and describe what you fixed. Google says reviews take several days or weeks, and resubmitting while a request is pending can slow things down.
- Tell affected people if customer data was exposed, and keep a short written record of what happened.
- Contain itTake the site offline or into maintenance mode if it serves malware or phishing pages.
- Change every credentialCMS admins, hosting panel, SFTP, database, registrar and API keys on the server.
- Preserve evidenceCopy the logs and infected files before cleaning.
- Check whether you must report itCERT-In's Directions require listed entities to report website intrusion or defacement within 6 hours.
- Clean or restore, then close the holeRestore from a backup taken before the break-in, update everything and fix the way in.
- Request a Google reviewIf Search Console shows a security issue, fix it across the site, then use Request Review.
- Tell affected peopleIf customer data was exposed, and keep a short written record.
Frequently asked questions
Is WordPress less secure than a custom-coded site?
Not by itself. WordPress is widely used, so it is a common target, and outdated or unused plugins are a frequent weak point. A well-maintained WordPress site can be safer than a neglected custom one. Our WordPress vs custom website guide covers the trade-offs.
Does an SSL certificate mean my site is secure?
No. HTTPS protects data in transit between the visitor and your server. It does not stop someone logging in with a stolen password or exploiting an old plugin.
Do I need a paid security plugin or firewall?
You need a firewall of some kind, but it can come from your host, a reverse-proxy service or a plugin. What matters more is that someone keeps it configured and acts on its alerts.
Can you secure or rebuild our website?
We build and maintain WordPress and custom websites. Get in touch and tell us what your site runs on today.
Sources
Want this built for your business?
UC Tech builds software, apps, websites and WhatsApp automation.
