Website Admin & Server Security Commands

Free collection of 500+ copy-paste website admin commands, WordPress CLI commands, Linux incident response commands, Nginx security config, and webshell detection. No login required.

💡
How to use: Click a toolkit to open it. Commands are editable in-place — click the textarea to replace YOUR_DOMAIN or YOUR_IP before copying. Each command has an optional Strategy note that explains when to run it and what a suspicious result looks like. All commands are read-only by default — none delete or modify anything unless the description explicitly says so.
🚀
Recommended Host
Need a server to run these commands?
I use Hostinger — full SSH access, pre-installed WP-CLI, free SSL, LiteSpeed. From $2.99/mo.
Get 80% Off Hostinger →
500+ commands 10 toolkits Linux · Windows · macOS One-click copy Free — no login
Admin & DevOps
65+ cmds 🌐
Website Admin Commands

DNS not resolving? SSL certificate expiring? Email bouncing back? Before you open a support ticket, run these commands. This toolkit covers every common webmaster diagnostic — from propagation checks across four DNS resolvers to DKIM/DMARC validation to database backup one-liners. If something's wrong with your site, start here.

What's inside
1 script · 3 OS 🦠
Windows Malware Scanner

AV fired an alert. The machine is slow and your IT person isn't sure. Before rebuilding from scratch, run this one PowerShell script — it auto-detects Windows 7, 10, or 11 and runs 12–13 forensic checks in about 60 seconds. Red output means investigate; green means clear. No extra tools, no install, just paste and run as Administrator.

What it checks
Incident Response
70+ cmds 🐧
Linux Incident Response Commands

Your server is actively compromised. Here's what matters: volatile evidence — running processes, open connections, deleted-but-executing files — disappears the moment someone reboots. Run the process and network commands first, before anything else. This toolkit follows the correct triage order: capture what's alive, then find persistence, then analyze logs. Don't skip steps and don't kill processes until you've documented them.

Workflow covers
40+ cmds 🪟
Windows Incident Response Commands

Suspicious process in Task Manager. Unknown outbound connection in netstat. Event ID 1102 — the audit log was cleared. These are the signals that something is wrong. This toolkit gives you a PowerShell-only investigation playbook: no Sysinternals, no extra downloads, just admin rights. Run it on any Windows machine without installing anything.

What it covers
60+ cmds 🐳
Containers / K8s / DB Forensics

A containerized service spawned a shell process. Your K8s cluster shows API calls you didn't make. MySQL has a user account you didn't create. Modern infrastructure attacks don't look like traditional server compromises — they target privileged containers, RBAC misconfigurations, and database extension backdoors. This toolkit covers forensics for the full cloud-native stack.

What it covers
Offensive & Defensive Security
60+ cmds 🕷️
Webshell Detection & Vuln Scanning

PHP backdoors hide in upload directories, disguised as image files. JSP webshells sit dormant for weeks before activating. Behinder and Godzilla agents leave almost no disk footprint. If your site was defaced or is making unexpected outbound calls, the backdoor is probably already there — you just haven't found it yet. These grep patterns and nuclei templates will.

What it covers
40+ cmds 🛡️
Security Hardening & Defense

Redis on 0.0.0.0:6379. SSH with password authentication. Nginx returning server version in headers. These misconfigurations appear in nearly every post-breach report. This toolkit is the "fix it before someone finds it" checklist — the exact commands to lock down Nginx, SSH, iptables, fail2ban, and the Linux kernel before a red team or automated scanner gets there first.

What it covers
Blogger & WordPress Tools New
50+ cmds 📝
WordPress CLI Commands

WP-CLI turns 30 minutes of clicking around wp-admin into a single terminal command. Locked out of your admin panel? One command creates a new admin account. Migrating to a new domain? One command does the database search-replace — correctly handling serialized data that raw SQL replace would corrupt. This toolkit covers every common WordPress task you'd otherwise do through the browser.

What's inside
40+ snippets
Nginx
Nginx & Apache Speed Config
amp; Apache Speed Config Commands

Lighthouse score 60. SSL Labs grade B. PageSpeed says "serve static assets with an efficient cache policy." These snippets fix each of those — without touching a single line of application code. Paste a gzip block, reload Nginx, watch the score go up. Each snippet is commented with exactly where to place it and what the before/after result looks like.

What's inside
35+ cmds 🚀
Git Deployment Toolkit

Still uploading files via FTP? Still SSHing in to run git pull by hand? There's a better workflow: set up a bare repo on your server, push from your local machine, and a post-receive hook automatically deploys to your web root — with zero downtime, via a symlink swap that takes under a second and keeps the previous release ready for instant rollback.

What's inside
90+ commands 🐳
Docker Commands Toolkit

You keep hearing "just Dockerize it" — but docker run, docker build, and docker-compose are just the beginning. Whether you're running a local dev environment, deploying a Node.js app to a VPS, or managing multi-container stacks in production, this toolkit takes you from your first container to production-hardened deployments with health checks, resource limits, and security hardening.

What's inside
90+ tactics 📈 ⭐ NEW
SEO Playbook — Tactics That Actually Work

Not another "write great content" guide. Every tactic here is specific, actionable, and measurable — exact title tag formulas, copy-paste schema markup, real link building email templates, a monthly GSC audit routine, and Core Web Vitals fixes with exact Nginx configs. Read it once, use it forever.

What's inside
28 steps 🗺️ ⭐ NEW
New Website Launch Roadmap

You bought a domain and a VPS — now what? This roadmap walks you from a blank server to a live, indexed, optimized WordPress site with backlinks and security monitoring in place. 28 steps across 8 phases, with recommended tools at every stage. Check off as you go.

What's inside
100+ commands 🐧
Linux Commands Toolkit

You get root access to a Linux server and the terminal stares back at you. Whether you're a developer who just got a VPS, a blogger setting up Nginx, or someone trying to figure out why the server is slow at 2am — this toolkit covers everything from basic navigation to performance tuning. Start at the top, work your way down, copy and paste as you go.

What's inside
Interactive 🚨 ⭐ NEW
My Website Was Hacked — Decision Tree

Not sure where to start when your site is compromised? Answer 3–4 diagnostic questions — is the site down, showing malware, flagged by Google, locked out? — and this tool routes you directly to the right commands and toolkit. No more reading docs top-to-bottom trying to figure out which applies to you.

What's inside
10 checks 🏥 ⭐ NEW
Server Health Check Script

One bash script, run every Sunday, 30 seconds, catches problems before they become emergencies. Disk full? SSL expiring? Backup missing? Brute force attack? Suspicious process running? Webshell dropped? The script checks all of it and prints PASS / WARN / FAIL for each item.

What's inside

Frequently Asked Questions

Everything you need to know before running your first command

What commands are included in this website admin toolkit?
10 specialized toolkits: DNS/SSL/WordPress admin (65+ cmds), Windows malware scanner (1 all-in-one script), Linux incident response (70+ cmds), Windows incident response (40+ cmds), Docker/K8s/DB forensics (60+ cmds), webshell detection (60+ cmds), security hardening (40+ cmds), WordPress CLI (50+ cmds), Nginx & Apache speed config (40+ snippets), and Git deployment (35+ cmds). All copy-paste ready with one-click copy buttons.
Do I need coding skills to use these commands?
Basic terminal familiarity is recommended. Each command card explains what the command does, and optional Strategy notes explain when and why to run it. Placeholders like YOUR_DOMAIN or YOUR_IP are clearly marked — click the command to edit it inline before copying. The Windows Malware Scanner requires zero customization: paste it into PowerShell (as Administrator) and run.
What operating systems are supported?
Linux (Ubuntu, Debian, CentOS, RHEL — all major distros), Windows 7/10/11 via PowerShell, and macOS for workstation-side commands. Docker and Kubernetes commands work on any OS. Nginx/Apache config snippets work on any Linux distribution.
Do I need SSH access to run these commands?
Most server-side commands require SSH. For shared hosting without terminal access, Hostinger provides a built-in SSH terminal in their hPanel, and WP-CLI is pre-installed on their WordPress plans. The Website Admin Toolkit also includes commands you can run locally (dig, curl, openssl) that don't require server access at all.
How do I detect if my WordPress site has been hacked?
Start with the Webshell Detection toolkit to grep for PHP backdoor patterns in wp-content/. Use the Linux IR toolkit to check for unexpected cron jobs, unauthorized SSH keys in ~/.ssh/authorized_keys, and outbound connections (ss -tnp). Use the Website Admin toolkit's WordPress section to audit admin users (wp user list --role=administrator) and find recently modified PHP files (find . -newer wp-config.php -name '*.php').
Are these commands safe to run on a live production server?
Read-only diagnostics (netstat, ps, dig, curl, reading logs) are always safe. Commands that modify files or configs have Strategy notes flagging the risk level. Always run wp db export backup.sql before any database command. The Linux IR commands in particular are designed to be non-destructive by default — they collect evidence without touching the system.
How do I use WP-CLI on my WordPress site?
Install with: curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && chmod +x wp-cli.phar && sudo mv wp-cli.phar /usr/local/bin/wp. Then SSH into your server, cd to your WordPress root directory, and run any wp command. Hostinger has WP-CLI pre-installed on all WordPress plans — just SSH in and it's ready.
What is incident response and who needs it?
Incident response (IR) is the process of detecting, containing, and recovering from a server breach or attack. It's not just for large enterprise security teams. Website owners who find unknown admin accounts, shared hosting users who notice their server sending spam, and developers with defaced WordPress sites all need IR commands. The Linux and Windows IR toolkits give you a step-by-step workflow using only built-in OS commands — no special tools, no installs, just SSH access and admin rights.
Which web hosting works best with these commands?
Any Linux VPS works. For bloggers and small sites, Hostinger offers full SSH access, pre-installed WP-CLI, LiteSpeed web server (all Nginx patterns here apply), free SSL, and pricing starting at $2.99/mo. Their hPanel terminal lets you run WP-CLI commands without a separate SSH client.
Can I download these commands as a file or script?
Click any command to edit it inline (replace placeholders with your own values), then hit Copy. No account or download needed. The Windows Malware Scanner is one complete PowerShell script you can save locally. For Nginx and .htaccess configs, each snippet is self-contained and paste-ready into your config file.
My site is hacked but I don't know where to start — what should I do first?
Use the Website Hacked Decision Tree. Answer 3–4 questions about your situation (is the site down? showing malware? locked out of WP admin? being DDoS'd?) and it routes you to the exact commands for your scenario. Covers 20+ specific situations from disk-full server crashes to Google Safe Browsing removal requests.
How do I monitor my server's health on a regular basis?
Use the Server Health Check Script — one bash script that checks disk usage, memory, CPU load, SSL expiry, backup age, failed SSH logins, suspicious processes, and recently modified PHP files. Save it to /opt/health-check.sh and schedule it via cron to run every Sunday. Each check prints PASS, WARN, or FAIL with color coding so problems are obvious at a glance.
I'm new to websites — where should I start?
Start with the New Website Launch Roadmap — it walks you through 28 steps across 8 phases, from buying a domain and server to installing WordPress, setting up SSL, submitting to Google, and building your first backlinks. Each step has recommended free and paid tools. Check off steps as you complete them — progress is saved in your browser. Once your site is live, come back to the SEO Playbook and Security toolkits.
Found this useful? Share it with other webmasters.

If these tools saved you time or helped you recover from a server incident, feel free to add a link on your website so other site owners can find it. No exchange needed.

<a href="https://ordinarymantrying.com/tools/toolkit/">Website Admin & Security Command Toolkit</a>