Web Server Security Basics: A Simple 2026 Checklist for Site Owners

Most hacked websites are not hacked by geniuses. They are hacked through old plugins, weak passwords and small settings nobody checked. This guide gives you a simple server security checklist in plain words, explains which parts your host handles and which parts are yours, and shows how to keep your email off spam blacklists.

Quick answer

Keep everything updated, use strong passwords with two-factor login, keep off-site backups, and run a malware scanner. If you have your own server, also hide your server and PHP version numbers. To protect your email, set up SPF, DKIM and DMARC and check that your domain is not on spam blacklists.

Who is responsible for what?

Security is shared between you and your host. What you need to do depends on your type of hosting:

Task

Shared or managed hosting

VPS or dedicated server

Server software updates

Your host

You (unless managed)

Firewall and DDoS protection

Your host

You or your host

WordPress, plugins and themes

You

You

Passwords and logins

You

You

Backups

Your host, plus your own copy

You

Server settings (versions, PHP)

Your host

You

If you are not technical, shared or managed hosting is safer because experts handle the server side for you. See how to choose web hosting.

The simple server security checklist

  1. Update everything. Keep WordPress, plugins, themes and PHP up to date. Old plugins are the most common way in.
  2. Delete what you do not use. Remove unused plugins, themes and old test sites.
  3. Use strong, unique passwords. Use a password manager so every account has its own password.
  4. Turn on two-factor login (2FA). For your hosting account, WordPress admin and domain registrar.
  5. Keep off-site backups. Store at least one backup outside your hosting account, so you can restore if the server is hacked.
  6. Run a malware scanner. Many hosts include one. Plugins like Wordfence also work.
  7. Use a web application firewall (WAF). It blocks many attacks before they reach your site. Many hosts and services like Cloudflare offer one.
  8. Check user accounts. Remove admin users you do not recognize.
  9. Check your redirects. Hackers sometimes add hidden redirects in your SEO plugin or .htaccess file. Look for strange entries pointing to odd websites or code.
  10. Use HTTPS everywhere. Free SSL protects logins and forms.

Hide your server and PHP version (VPS and dedicated servers)

By default, many servers show which software and version they run. Attackers use this to look for servers with known holes. Hiding it does not fix holes, but it makes you a less obvious target.

Software

Setting to change

Where

Apache

ServerTokens Prod and ServerSignature Off

Apache config file

Nginx

server_tokens off;

Nginx config file

PHP

expose_php = Off

php.ini file

Restart the web server after you change these settings. On shared hosting you usually cannot change them, and your host should already handle it. If you are not sure, ask their support.

What about suPHP?

suPHP was an old tool that made each website run as its own user, so one hacked site could not easily touch another. Most hosts have replaced it with newer and faster options like PHP-FPM, which keep sites separate in a similar way. If your host still uses suPHP in 2026, it is a sign their setup is very old.

Keep your site free from phishing pages

Hackers sometimes hide fake login pages (phishing pages) on real websites. Your site can then get flagged by Google and blocked by browsers. To spot and prevent this:

  • Check the Security issues report in Google Search Console.
  • Check your site on Google Safe Browsing site status.
  • Run regular malware scans and look for files you did not upload.
  • Keep everything updated, since most phishing pages get in through old software.

Keep your email off spam blacklists

If your server or domain sends spam, even by accident, it can land on email blacklists. Then your real emails go to spam folders.

  1. Check your domain and server IP with a free blacklist checker like MXToolbox.
  2. Set up SPF, DKIM and DMARC. These DNS records prove your emails are really from you. Since 2024, Gmail and Yahoo require them from bulk senders.
  3. Secure contact forms with spam protection, so bots cannot use them to send spam.
  4. If you are listed, fix the cause first (like a hacked script), then ask the blacklist to remove you.

Tip: Most blacklists list your server’s IP address, not just your domain. On shared hosting, another customer can cause a listing. If that happens, contact your host. They can move you or fix the problem.

Frequently asked questions

How do I secure my web server?

Keep all software updated, use strong passwords with two-factor login, keep off-site backups, use a firewall and malware scanner, and hide your server and PHP version numbers.

Is shared hosting secure?

How do I hide my PHP version?

Is suPHP still used?

How do I know if my site has a phishing page?

How do I check if my mail server is blacklisted?

What are SPF, DKIM and DMARC?

Update log

October 2026: Published. This guide combines and replaces 6 older HostLater posts from 2013 to 2015 about hiding server and PHP versions, suPHP, phishing protection and mail server blacklists.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.