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
- Update everything. Keep WordPress, plugins, themes and PHP up to date. Old plugins are the most common way in.
- Delete what you do not use. Remove unused plugins, themes and old test sites.
- Use strong, unique passwords. Use a password manager so every account has its own password.
- Turn on two-factor login (2FA). For your hosting account, WordPress admin and domain registrar.
- Keep off-site backups. Store at least one backup outside your hosting account, so you can restore if the server is hacked.
- Run a malware scanner. Many hosts include one. Plugins like Wordfence also work.
- Use a web application firewall (WAF). It blocks many attacks before they reach your site. Many hosts and services like Cloudflare offer one.
- Check user accounts. Remove admin users you do not recognize.
- 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.
- 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.
- Check your domain and server IP with a free blacklist checker like MXToolbox.
- 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.
- Secure contact forms with spam protection, so bots cannot use them to send spam.
- 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?
Yes, if your host is good. On shared hosting, the host secures the server and you secure your own site, like WordPress, plugins and passwords.
How do I hide my PHP version?
Set expose_php = Off in your php.ini file and restart the web server. On shared hosting, ask your host.
Is suPHP still used?
Rarely. Most hosts have replaced suPHP with newer options like PHP-FPM, which also keep each site separate.
How do I know if my site has a phishing page?
Check the Security issues report in Google Search Console and Google’s Safe Browsing site status, and run a malware scan.
How do I check if my mail server is blacklisted?
Use a free tool like MXToolbox’s blacklist check with your domain or server IP address.
What are SPF, DKIM and DMARC?
They are DNS records that prove your emails really come from your domain. They help your emails reach the inbox and stop others from faking your address.
Disclosure: this post may contain affiliate links, and we may earn a commission if you buy through them. It costs you nothing extra.
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.
Leave a Reply