PortGate

Free tools

Security checklists

Choose where it runs and what it is built with, from WordPress to Kubernetes and self-hosted AI models. You get a checklist with why each step matters and the commands to check and fix it. Tick items off as you go; your progress stays in this browser.

What is it built with? (pick everything that applies)

Web server

App or framework

Database and search

Infrastructure and delivery

AI and LLM

Popular: Ubuntu + Nginx + WordPress + MySQL · Ubuntu + Nginx + Laravel + MySQL + Redis · Ubuntu + Docker + Node.js + PostgreSQL · Rails on a cloud VM behind Cloudflare · Rocky Linux + Apache + PHP + MySQL · Self-hosted LLM with RAG (Ollama, Qdrant) · AI agent app on a platform · Go and AI on Kubernetes · WordPress on shared hosting

Security checklist: Shared hosting (cPanel, Plesk, hPanel) with WordPress, Cloudflare in front

Shared hosting account

0 of 6 done

  1. Two-factor sign-in on the hosting panel, registrar and email

    Critical

    Whoever gets into your hosting panel or domain registrar owns the site.

    Turn on 2FA in each account's security settings

  2. Choose the newest supported PHP version

    High

    Many shared hosts leave old accounts on end-of-life PHP. PHP 8.2 gets its last security fixes on 31 December 2026.

    In the panel's PHP selector, pick 8.3 or newer, then test the site

  3. Turn on free SSL and force HTTPS

    Critical PortGate domain monitoring checks this

    Free certificates (AutoSSL or Let's Encrypt) renew themselves; forcing HTTPS protects logins.

    Fix (.htaccess, after SSL is active)

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  4. Delete old copies, staging sites and unused databases

    High PortGate Malware Guard checks this

    Forgotten installs never get updated and are the usual way into a shared account.

    List what is in your home and web folders, and remove anything you do not recognise

    ls -la ~ ~/public_html 2>/dev/null

    Find extra WordPress copies

    find ~ -maxdepth 4 -name wp-config.php
  5. Use SFTP, not plain FTP

    High

    FTP sends your password unencrypted.

    Use port 22 (SFTP) in your client and delete unused FTP accounts

  6. Download backups regularly

    High

    If the account is suspended or hacked, the host's backups may be unavailable or infected too.

    Download a full backup monthly and keep it off the host

WordPress

0 of 9 done

  1. Keep core, plugins and themes updated

    Critical

    Outdated plugins are the most common way WordPress sites get hacked.

    Check

    wp core check-update && wp plugin list --update=available && wp theme list --update=available

    Fix

    wp core update && wp plugin update --all && wp theme update --all
  2. Delete plugins and themes you do not use

    High

    Deactivated plugins can still be attacked directly through their files.

    Check

    wp plugin list --status=inactive && wp theme list --status=inactive

    Fix

    wp plugin delete plugin-slug
  3. Review administrators and require two-factor sign-in

    Critical

    An extra admin account is a common backdoor after a break-in.

    Check

    wp user list --role=administrator --fields=ID,user_login,user_email,user_registered
  4. Stop PHP running in the uploads folder

    Critical PortGate Malware Guard checks this

    Attackers upload webshells disguised as images; if PHP cannot run there, the shell is dead weight.

    Check (should print nothing)

    find wp-content/uploads -type f -name '*.php'

    Fix on Apache or shared hosting (wp-content/uploads/.htaccess)

    <FilesMatch "\.(php|phtml|phar)$">
        Require all denied
    </FilesMatch>
  5. Turn off the theme and plugin editor

    High

    A stolen admin login otherwise becomes code execution through Appearance, Theme File Editor.

    Fix

    wp config set DISALLOW_FILE_EDIT true --raw
  6. Verify core and plugin files against WordPress.org

    High PortGate Malware Guard checks this

    Changed core files are a strong sign of a hack.

    Check

    wp core verify-checksums && wp plugin verify-checksums --all
  7. Lock down wp-config.php

    High

    It holds the database password and secret keys.

    Check

    ls -l wp-config.php

    Fix

    chmod 640 wp-config.php
  8. Block xmlrpc.php if you do not use it

    Medium

    XML-RPC lets attackers try many passwords per request. Jetpack and some mobile apps need it, so check first.

    Check (405 or 403 means blocked)

    curl -s -o /dev/null -w '%{http_code}\n' -X POST https://example.com/xmlrpc.php

    Fix on Apache or shared hosting (the site's .htaccess)

    <Files xmlrpc.php>
        Require all denied
    </Files>
  9. Keep debug output off in production

    Medium

    Debug output shows file paths and sometimes database errors to visitors.

    Check (want false)

    wp config get WP_DEBUG

Cloudflare in front

0 of 4 done

  1. Turn on 2FA for Cloudflare and your domain registrar, and lock the domain

    Critical

    Whoever controls DNS controls your site, your email and your TLS certificates.

    Turn on 2FA in both accounts and the registrar's transfer lock

  2. Use Full (strict) SSL, not Flexible

    High

    Flexible sends traffic between Cloudflare and your server unencrypted, and often causes redirect loops.

    SSL/TLS > Overview > Full (strict), with a valid certificate or a Cloudflare origin certificate on the server

  3. Do not leak the origin IP in other DNS records

    Medium

    A grey-cloud record such as mail or direct on the same server shows attackers where to go.

    Check

    for h in example.com www.example.com mail.example.com direct.example.com; do echo "$h $(dig +short $h | tr '\n' ' ')"; done
  4. Turn on managed WAF rules and rate-limit logins

    Medium

    Blocks common attacks and credential stuffing before they reach your app.

    Security > WAF managed rules on, and a rate limiting rule for your login and password reset paths

Commands are for Shared hosting (cPanel, Plesk, hPanel). Read each one before you run it, test on a staging server where you can, and keep an SSH session open while you change SSH or firewall settings.