Most site owners do not think about security until one morning they get a message from Google saying “this site may be hacked,” or the home page shows ads that have nothing to do with their business, or a customer says the site redirects somewhere strange. By then the site is down and the reputation is taking damage.
The good news is that most small-site hacks come from simple mistakes: outdated software, a weak password, a neglected plugin and no backup. Fixing those does not need a programmer. This guide explains the basics in plain language, drawing on the official “Hardening WordPress” guide in WordPress developer documentation. Digix is an Egyptian agency that builds on WordPress and other platforms. This guide does not replace a security specialist if your site handles sensitive data or payments.

Why small sites get attacked
Not because your site matters to attackers personally. Most attacks are automated: programs scan thousands of sites for known weaknesses and common passwords. A small site with no updates is an easy target. Attackers use compromised sites to send spam, host scam pages, steal data or redirect visitors. Do not say “I have nothing worth stealing.”
Rule one: keep everything updated
The official hardening guide says WordPress is updated regularly to address security issues, and that older versions are not maintained with security updates. It adds that automatic updates have been part of WordPress since version 3.7.
What to update:
- WordPress core.
- Your theme.
- Plugins.
- The PHP version on your hosting, through the hosting panel or by asking your provider.
Tips:
- Turn on automatic updates for minor security releases at least.
- Update weekly, and quickly when a vulnerability is announced.
- Take a backup before a major update, which may clash with a plugin.
- Test on a staging copy if your site is a store or complex.
- Delete what you do not use. Inactive themes and plugins that are not updated remain a way in.
Rule two: strong passwords and careful permissions
The official guide has a section on passwords and stresses that choosing a strong password is an important part of security.
- Long, unique passwords for each account: WordPress admin, hosting, email and domain. Use a password manager.
- Do not use “admin” as a username. Create a different one.
- Two-factor authentication (2FA) on admin accounts through a trusted plugin, and on your hosting, domain and email accounts.
- One account per person. Do not share a single password.
- Least privilege: someone who writes posts needs the Editor or Author role, not Administrator.
- Remove accounts of people who left: a former employee or a designer whose work is finished.
- Do not send passwords by email or chat. Use a secure sharing tool. The guide warns against sending passwords over unencrypted connections.
Rule three: backups
The official guide treats backups as a core part of security. It says you should keep backups and know the state of your installation at regular intervals, and have a plan to recover it.
- How often? Daily for stores and sites that change daily. Weekly or after each change for mostly static sites.
- What? Both the files and the database.
- Where? Away from the hosting itself: another cloud or your computer. A backup on the same server is lost with it.
- How many? Keep several from different dates, because you may not notice a hack for days.
- Test a restore. A backup you have never restored may not work.
- Know who is responsible: you, the host or the agency? Write it in the contract.
Rule four: plugins and themes with care
WordPress documentation notes that whoever gets an administrator account can install malicious scripts, which is why plugins are the most dangerous thing to let in. It also warns that you should download WordPress only from the official site.
- Install from trusted sources: the official WordPress plugin directory or known vendors. Avoid free “nulled” copies of paid plugins. They are one of the most common ways sites get infected.
- Keep the number low. Each plugin adds attack surface and slows the site.
- Read reviews, the last update date and install counts. A plugin not updated for years is a warning sign.
- Review plugins every three months and remove what you do not need.
- Themes: from a known source, kept updated. If you edit one, use a child theme.
Rule five: hosting
Very cheap hosting can cost you dearly. Ask your provider:
- Does it provide daily backups, and where are they stored?
- Does it support current PHP versions and update them?
- Does it offer a firewall or malware scanning?
- What is its support policy if you are hacked?
- Does it isolate sites on the same account from one another?
- Is an HTTPS (SSL) certificate free and active?
Make sure your site runs fully on HTTPS, which protects visitors’ data and your logins in transit.
Rule six: protect the login page
- Limit failed login attempts with a trusted security plugin.
- Changing the login URL can reduce noise, but do not rely on it alone. The official guide warns against treating obscurity as protection.
- Two-factor authentication, as above.
- Disable file editing in the dashboard. The guide describes an option to disable the file editor so that if an attacker reaches the dashboard they cannot edit theme and plugin code from inside. It is set in the configuration file, so ask your developer to apply it.
Rule seven: server permissions and the database
These are technical, handled by your developer or host, but ask about them:
- File permissions set so sensitive files are not writable by anyone.
- Protecting wp-config.php, which holds database credentials.
- A strong database password and limited privileges.
- FTP: use encrypted SFTP instead of plain FTP.
- Delete old files and forgotten test copies from the server.
Rule eight: monitor and log
- Scan your site regularly with a security plugin or scanning service.
- Register in Google Search Console, which tells you if Google finds a security issue.
- Turn on email alerts for new admin logins and plugin installs.
- Watch for signs: sudden slowness, pages you did not create, strange users, your site showing odd titles in search results, redirects.

What to do if your site is hacked
Stay calm and work through these steps:
- Do not panic and do not delete everything. You may need evidence.
- Contact your hosting provider. Many help with cleanup or restoring.
- Change every password: WordPress, hosting, database, FTP and email.
- Restore a clean backup from before the hack, after confirming the date.
- Update everything at once and delete what you do not need.
- Scan the site with a security tool for strange files and users you did not create.
- Check Search Console. If it shows security warnings, request a review after cleanup.
- Tell those who need to know. If customer data leaked, you may have legal duties in your country, so consult a specialist.
- Write down what happened and how, to prevent a repeat.
If the site is a store or holds sensitive data, bring in a security specialist rather than fixing it yourself.
Stores and forms
If your site receives data from visitors, such as a contact form, bookings or a store, take extra care. Do not store payment card data on your site, and use a reputable payment gateway that handles the sensitive part. Make sure contact forms are protected against spam in a way that does not block real users. Review who can see order and customer data in the dashboard, and delete old orders you do not need. Data protection rules differ by country, so ask a specialist what applies.
Questions to ask your developer or agency
Ask these and get written answers:
- Who updates WordPress and plugins, and how often?
- Where are backups stored, how many, and has a restore been tested?
- Who owns the hosting and domain accounts?
- Is two-factor authentication on for the important accounts?
- Which plugins are installed and why?
- What happens if the site is hacked, and who calls whom?
- What does monthly maintenance cost and what does it include?
A serious agency will welcome the questions. If someone dodges them, that is worth noticing.
An example (invented)
Imagine a small clinic in Cairo that has run WordPress for three years. The theme has not been updated for a year, an old form plugin is still installed, the admin password is shared with a former secretary, and the only backups are those the host keeps. Suppose everything is updated, the old user is removed, 2FA is enabled, daily off-server backups are set up and two unused plugins are deleted. The chance of an incident drops sharply, and recovery becomes possible if one occurs. The clinic is invented, and nobody can promise complete security.
Monthly checklist (30 minutes)
- WordPress, theme and plugins are updated.
- A recent backup exists and a restore has been tested.
- No extra admin accounts.
- No unused plugins or themes.
- 2FA on important accounts.
- Site runs on HTTPS.
- No warnings in Search Console.
- PHP version is current per your host.
- Passwords are in a password manager.
- A simple security scan shows nothing strange.
Common mistakes
- Postponing updates “so nothing breaks.”
- One password for everything.
- Backups only on the same server.
- Pirated plugins.
- Sharing the admin account.
- Not removing old accounts.
- Assuming the host handles everything.
- Relying on one security plugin instead of the basics.
Frequently asked questions
Is WordPress insecure? It is a widely used platform that receives security updates. Most hacks come from neglect: updates, plugins and passwords.
Do I need a security plugin? It can help, but it does not replace updates, backups and strong passwords.
Does my host take backups? Some do, but ask about frequency, location and restore, and do not rely on them alone.
How much does security cost? The basics are almost free. Time and follow-up are the cost. Maintenance plans vary, so ask for the scope in writing.
Does a store need more? Yes. If your site handles payments or customer data, involve a specialist.
How Digix can help
We build sites with basic protection and agree a maintenance, update and backup plan with clients. See our web and digital experience services, our portfolio, or request a quote.
Related reading:
Next step
Today: update WordPress and your plugins, enable two-factor authentication, and make sure you have a backup outside your server. These three steps reduce the risk a lot.
If you would like us to review your site, contact Digix. We are an Egyptian agency, and we will tell you plainly what we find.
Source: WordPress developer documentation, “Hardening WordPress” (developer.wordpress.org/advanced-administration/security/hardening/). This guide is simplified and general and does not replace a security specialist. The clinic in the example is invented.
One Response