Web Design

Website Security: Bots Don't Want Your Password, They Want the Plugin You Never Updated

Why small business sites get attacked: 10 common threats, WordPress defences in plain language, and a 15-point website security checklist.

27 NOV 20268 min readBy Dijipal
Website Security: Bots Don't Want Your Password, They Want the Plugin You Never Updated

Article

You open your website one morning and find a pharmacy ad you never placed, or a browser warning saying the site may be dangerous. Most of the time, nobody picked you. Automated bots scan thousands of sites, find an outdated plugin, a weak password or an unprotected permission, and walk in. That is why website security is not just a big-company concern: a small business site is the easiest target a bot can find.

Below we walk through the 10 most common attacks in plain language, with WordPress-focused defences. We finish with the biggest risk that checklists often leave out, and a 15-point checklist you can work through.

SQL injection and XSS: commands slipped in through a form

SQL injection happens when text typed into a form field is run as a database command. If the site pastes your input straight into a query, data leaks. XSS (cross-site scripting) is when a comment or message left on the site runs as a script in someone else’s browser.

WordPress core is generally solid here; trouble usually comes from old plugins and custom-built themes. If you commission custom code, ask your developer for:

  • User-supplied values passed through $wpdb->prepare() in database queries.
  • Escaping on output (esc_html(), esc_attr(), esc_url()) and sanitising on input (sanitize_text_field() and similar).
  • Where possible, a Content-Security-Policy header, which limits the damage of XSS.

What you can do yourself is simple: keep the number of plugins low, delete what you do not use (even a deactivated plugin can be exploitable), and do not postpone updates.

CSRF and clickjacking: a button clicked in your name

CSRF means your logged-in session is used from another page without you noticing; while your admin panel is open, a malicious link could send an “add user” request. WordPress answers this with nonces: short-lived verification tokens tied to each form and action. For custom development, nonce creation and checking (wp_nonce_field, wp_verify_nonce) should never be skipped. SameSite=Lax cookies are a good baseline, but they are not a reason to drop tokens on state-changing actions.

Clickjacking is when your site is loaded invisibly inside another page so that visitors click without realising. The fix is two headers: CSP’s frame-ancestors directive for modern browsers and X-Frame-Options for older ones. OWASP’s Clickjacking guidance also notes the header must be sent in the HTTP response; a meta tag does not work. On Apache shared hosting you can add the lines to .htaccess; on Nginx you use add_header. If you never need your site shown inside a frame elsewhere, the strictest setting is enough.

Brute force and wp-login: trying every key on the ring

Bots hit /wp-login.php with password guesses all day. Defence works in layers:

  1. Drop the “admin” username. Create a new administrator account and delete the old one.
  2. Limit login attempts with a security plugin or a server rule that locks out after repeated failures.
  3. Turn on two-step verification, preferably with passkeys (see below).
  4. Disable XML-RPC. Unless you rely on a mobile app or remote publishing, this legacy interface is just another door for password guessing.
  5. Use a password manager for long, unique passwords.

DDoS and bot traffic: a crowd blocking the door

A DDoS attack floods your server with requests. For a small business the more practical danger is often aggressive bots slowing down a shared server rather than a headline-sized attack. A layered answer: a CDN/WAF service such as Cloudflare sits in front and filters hostile traffic before it reaches you; rate limiting cuts off excessive requests from a single address; on cPanel hosting, ask your provider about ModSecurity-style web application firewall rules. Getting your host’s protections in writing saves time in a crisis.

HTTPS and session security: keep the mailbox private

In a man-in-the-middle attack, someone on the network reads traffic between you and the site. The fix is an SSL certificate with the whole site served over HTTPS; an HSTS header (Strict-Transport-Security) then tells browsers to always connect securely. Against session hijacking, mark cookies HttpOnly and Secure, so scripts cannot read them and they only travel over encrypted connections. Keep admin sessions reasonably short and log out on shared computers.

Path traversal and file upload flaws: from the hallway to the vault

Path traversal uses sequences like ../ to reach files you never meant to expose. Upload forms are among the riskiest doors: if a PHP file disguised as an image can be executed, the server is compromised. Practical steps:

  • Keep file permissions tight: typically 755 for folders and 644 for files, with stricter permissions for wp-config.php.
  • Block PHP execution inside wp-content/uploads (on Apache, with an .htaccess file in that folder denying access to .php files).
  • Add DISALLOW_FILE_EDIT to wp-config.php to turn off theme and plugin code editing from the dashboard.
  • Restrict file types and sizes on upload forms.

Phishing: it targets your people, not your site

Phishing is not a software bug; it is social engineering: a look-alike domain such as rnybank, a fake login page, a “your account will be suspended” email. A short checklist for your team:

  • Read the domain letter by letter before clicking.
  • Reach login pages from saved bookmarks, not email links.
  • Use separate, unique passwords for hosting, domain registrar and the admin panel.
  • Before replying to a suspicious email, call the sender through another channel.

Why an SMS code is not enough: a fake page can relay the code you type to the real site instantly, so the code is stolen. A passkey (FIDO2) is bound to the real domain and will not work on a fake one, which makes it far more resistant to phishing. If your accounts support it, choose a passkey or hardware key over SMS.

The big risk missing from most lists: broken access control

The number one risk in the OWASP Top 10:2025 is still broken access control: the rule that a logged-in user should only see their own data can be bypassed. The best-known form is IDOR: changing /order/1041 to /order/1042 in the address bar and seeing someone else’s order. Any site with bookings, orders or a member area faces this. The fix belongs in development: the server must check on every request whether this user may access this record (in WordPress, current_user_can() plus record ownership checks). Hiding a menu item is not access control.

The second big risk is the boring one: unpatched software. Known flaws in core, themes and plugins are published openly, and bots look for sites that have not updated. We cover what regular upkeep includes in our website maintenance guide.

Seasonal sites and multilingual loads

In North Cyprus (TRNC), tourism, real estate and restaurant sites take heavy booking and form traffic in summer; checking updates and backups before the season starts means no surprises on the busiest day. On multilingual sites, make sure every language version runs with the same security settings; a forgotten language page or test copy is a frequent open door.

A 15-point website security checklist

  1. WordPress core, theme and plugins are up to date.
  2. Unused plugins and themes are deleted.
  3. No “admin” username; unnecessary administrator accounts removed.
  4. Long, unique password for every account.
  5. Two-step verification (passkey where possible) is on.
  6. Login attempt limiting is active.
  7. XML-RPC is off if unused.
  8. Whole site on HTTPS with HSTS.
  9. Cookies set HttpOnly, Secure and SameSite.
  10. frame-ancestors and X-Frame-Options headers are sent.
  11. PHP execution blocked in uploads; file permissions tight.
  12. Dashboard file editing disabled (DISALLOW_FILE_EDIT).
  13. A CDN/WAF is in front; host-level firewall rules have been asked about.
  14. Automatic backups exist and a restore has been tested once.
  15. Phishing checklist shared with the team; the number of privileged users kept minimal.

Frequently asked questions

Is a small business website really a target?

Yes. Most attacks are automated and choose sites by their weaknesses, not their size. Small sites are often neglected, which makes them easy targets.

Is installing a security plugin enough?

Not on its own. A plugin is one layer; updates, strong authentication, backups and server settings need to work together.

Is SMS two-step verification safe?

It is much better than nothing, but it does not fully stop phishing. A passkey or security key is more resilient.

How do I know if my site has been hacked?

Signs include content you did not publish, browser warnings, odd titles in Google results, administrator accounts you do not recognise, or sudden slowness. If this happens, contact your hosting provider and restore from a clean backup.

In short

Website security is not one tool but a habit of updates, strong sign-in, correct headers and backups; working through the checklist above once closes most of the risk. If you would like maintenance and security considered together, see our web design and development services, request a quote, or get in touch.

Share: WhatsApp X LinkedIn
← All posts

Let's build your next project.

Tell us what you need — we reply within 24 hours on business days with a tailored quote.