How to secure your WordPress site from hackers

WordPress powers much of the web, so automated scanners constantly look for weak logins, outdated plugins and exposed configuration files. A dependable WordPress security plan depends on connected controls, not a single security plugin. Each layer reduces the routes an attacker can exploit.

Start by identifying what you own: domains, hosting, DNS, core, themes, plugins, payment providers and third-party services. Secure hosting cannot compensate for reused passwords or neglected updates. Hardened WordPress code still depends on reliable backups, sound permissions and a response plan.

For Australian readers, local market conditions add practical considerations. Sole traders, studios and small agencies often use WordPress and .com.au or .au domains to reach customers. Privacy obligations, locally timed support and customer-data protection affect both reputation and conversion.

Hosting option Update responsibility Security trade-off Best fit
Managed WordPress Provider handles platform patches; owner updates site content. Strong isolation and staging, usually at a higher monthly cost. Busy sites without a full systems team.
VPS or dedicated hosting Owner patches unless management is purchased. Maximum control and explicit responsibility. Technical teams needing custom isolation.
Shared hosting Provider manages most platform components. Cheapest, but shared resources add risk. Small sites with strict budgets.

Secure the hosting and domain layer

Shared hosting is inexpensive, but one compromised neighbour can affect the environment. Managed WordPress hosting usually improves isolation and maintenance, while a VPS or dedicated server gives experienced operators more control and more responsibility.

For Australian businesses, compare patching speed, malware scanning, DDoS protection, isolation and backups, not just price. Sydney and Melbourne host many data centres, so local infrastructure can reduce latency and ease support. Location helps performance but does not replace tested controls.

Keep the registrar and DNS account under the business, enable multifactor authentication and turn on auto-renewal. Use an administrative email independent of the website. Where supported, ask about a registry-level domain lock, limit staff access and store recovery codes in a password manager.

Control every administrator account

Use a long, unique passphrase for every account and store it in a password manager. Turn on multifactor authentication for administrators, editors and publishing services. Never share one team login: shared credentials hinder attribution and make offboarding harder when a contractor leaves.

Apply least privilege through specific roles. Authors rarely need plugin installation, user management or theme editing. Remove unused accounts, rotate credentials after suspicious activity and revoke old sessions. Rate-limit login attempts at the firewall, and disable XML-RPC only after checking required apps.

A Brisbane or Perth agency may give staff access across working hours, so publish a role-based access list. Review it whenever someone joins or leaves, keep one break-glass administrator account offline and test its recovery method. The account name is not a strong defence; authentication and permissions are.

Keep WordPress and its extensions current

Enable automatic updates for minor WordPress releases, then schedule major core, theme and plugin updates for a quiet period. Test major changes on staging and take a fresh backup first. After each release, check forms, checkout, scheduled jobs and email delivery.

Install extensions only from reputable developers with active support. Remove abandoned or “nulled” plugins and unused themes, then review the inventory monthly. Limit extension permissions, revoke unused API keys and test behaviour after updates instead of assuming a new version is safe.

External services create another trust boundary. Before relying on a platform to resize images or produce social previews, assess its access controls. For example, check the security terms and file handling of thumbnail generation tools before allowing uploads or credentials. Keep media processing separate from administrator access.

Protect data, files and network traffic

Serve the entire site over HTTPS with a valid, automatically renewed certificate. Redirect HTTP, remove mixed content and enable HTTP Strict Transport Security only after confirming every subdomain works over TLS. A content delivery network or web application firewall can add filtering and rate limiting to a correctly configured origin.

Protect wp-config.php, server files and secret keys. Use minimum permissions, block PHP execution in upload directories and keep configuration files outside public folders. Never send database credentials through ordinary email or shared documents. Rotate keys and passwords after staff departures or any disclosure.

Under the Privacy Act 1988, covered organisations must handle personal information according to the Australian Privacy Principles. Assess whether a compromise affects customer records, document the decision and involve the Office of the Australian Information Commissioner when notification is required. Use a hosted payment gateway, avoid storing card data in WordPress and control customer exports.

Create reliable backups and continuous monitoring

Use layered backups: current server files, scheduled copies on separate storage and a retained copy malware cannot easily reach. Back up both the database and wp-content because one does not contain the other. Understand your provider’s backup frequency, encryption and retention. Choose a storage location and document contractual data-residency needs.

A backup matters only after a successful restore. Test recreation on a clean environment, verify forms and media, and measure recovery time. Define acceptable downtime and data loss, then ensure the provider’s restoration process meets those targets. Keep recovery credentials offline, not merely an export of site content.

Turn on alerts for failed logins, malware findings, configuration changes and unusual traffic. Review uptime, firewall, server and file-integrity logs, Search Console security notices and administrative email. Centralise important signals, remove unused integrations and assign someone responsibility for acting on alerts.

Prepare an Australian incident response plan

Decide before an incident who makes decisions, contacts the host, revokes accounts and restores clean files. If something looks wrong, preserve logs, isolate the environment and stop publishing from the compromised server. Do not delete logs or reinstall over the only copy. Rotate privileged credentials from a trusted device and restore from a verified clean backup.

Know the local reporting routes. Use ReportCyber for criminal activity and seek advice from the Australian Cyber Security Centre when appropriate. If personal information was affected, assess notification duties with the Office of the Australian Information Commissioner, legal counsel and the business insurer. Prepare customer communications that stay accurate and prompt.

After recovery, document the cause, affected accounts and control gaps. Update access lists, remove the exploited component, patch the route used and add a detection test. The ASD Essential Eight provides an Australian baseline for governance, patching, access control, backups and incident response. Use it to prioritise improvements rather than collecting low-value add-ons.

Make security a repeatable routine

Put recurring work on a calendar. Review alerts and access events daily, scan files and extensions weekly, and update core, themes and plugins as releases appear. Monthly, remove dormant accounts and integrations, review administrator roles and check backups. Quarterly, restore an environment and test incident contacts; annually, consider penetration testing for a high-value site.

Makey Updates can turn these controls into a maintenance process. Request a focused WordPress security review through Makey Updates support, bring your hosting and plugin inventory, and prioritise administrator access, updates and recovery. Secure the highest-risk access today, schedule the first test restore and keep that date in the team’s calendar.