Published by HostSteps • A practical, beginner-friendly hardening guide
Your website is your brand’s front door. Keeping it secure protects your customers, your data, and your reputation. This guide explains the must-do security steps on HostSteps — from SSL and backups to firewalls, malware scanning, and smart configuration — in clear, actionable language.
1) Always Use HTTPS (Free SSL)
Encrypt traffic so logins, payments, and personal data can’t be intercepted. On HostSteps you can issue a free SSL certificate and force HTTPS with a simple redirect.
- In your panel, open SSL/TLS Status (or AutoSSL) → issue/renew a certificate for your domain and www.
- Force HTTPS site-wide (WordPress: set Site URL to
https://and add a redirect).
# .htaccess (Apache) force HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Tip: After enabling HTTPS, update hard-coded image/script URLs to https:// to avoid mixed-content warnings.
2) Schedule Daily Backups (and Test Restores!)
Backups are your safety net. Automate them and verify you can restore quickly.
- Files + Database: Back up both; changes often live in the DB.
- Retention: Keep at least 7–14 daily restore points.
- Off-site copy: Store a copy on separate storage.
- Test restores: Practice on a staging site to ensure integrity.
3) Keep Software Updated
Outdated software is the #1 entry point for attackers.
- Core updates: Update WordPress, plugins, and themes weekly.
- PHP: Run a supported PHP version for security/performance.
- Remove unused plugins/themes: Less code = smaller attack surface.
4) Harden Logins (2FA, Strong Passwords, Rate Limits)
- Strong passwords & password manager for all admins.
- 2FA (time-based OTP) for admin accounts.
- Limit login attempts and add reCAPTCHA on public forms.
- Unique admin username: Avoid “admin”.
5) Use a Web Application Firewall (WAF)
A WAF filters malicious traffic (SQLi, XSS, brute force) before it reaches your app.
- Enable WAF rules and Geo/Rate limits for admin areas.
- Block or challenge suspicious IPs and automated scanners.
- Pair WAF with bot protection and DDoS mitigation.
6) Secure HTTP Headers
Add modern security headers to reduce common risks.
# Example security headers (Apache .htaccess)
Header always set X-Content-Type-Options "nosniff"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Permissions-Policy "geolocation=(), camera=(), microphone=()"
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
# Basic CSP (tighten as needed)
Header set Content-Security-Policy "default-src 'self' https: 'unsafe-inline' 'unsafe-eval'; img-src 'self' data: https:; font-src 'self' https: data:; frame-ancestors 'self';"
Test CSP carefully to avoid breaking legitimate scripts/styles; refine domains as needed.
7) WordPress Hardening Essentials
- Disable file editing in the admin to prevent code tampering.
// wp-config.php
define('DISALLOW_FILE_EDIT', true);
define('DISALLOW_FILE_MODS', false); // keep true only if updates are automated elsewhere
- Protect wp-config.php and block sensitive files.
# .htaccess
<files wp-config.php>
order allow,deny
deny from all
</files>
# Disable directory listing
Options -Indexes
- Limit
xmlrpc.php(if you don’t use Jetpack/mobile XML-RPC).
# Block XML-RPC
<Files xmlrpc.php>
Order Deny,Allow
Deny from all
</Files>
8) Principle of Least Privilege
Give each user the minimum access they need.
- Use separate accounts; avoid shared logins.
- Assign roles (Editor, Author, etc.) instead of full Admin where possible.
- Rotate passwords when staff or agencies change.
9) Malware Scanning & File Integrity
- Schedule automatic scans for backdoors, web shells, and injected code.
- Monitor unexpected file changes in
wp-contentand core folders. - Quarantine and clean infections; redeploy from clean backups if needed.
10) Database & Credentials Hygiene
- Use a unique DB user/password per site/app.
- Restrict remote DB access; keep it local unless absolutely required.
- Change the table prefix only during initial setup if you want obfuscation.
11) DDoS & Brute-Force Resilience
- Enable rate limiting on login/admin routes.
- Use a CDN/WAF layer to absorb bursts and filter abusive IPs.
- Hide or rename the default login path if your CMS allows.
12) Monitoring, Alerts & Logs
Visibility lets you react before issues escalate.
- Error/access logs: review spikes, 404 storms, or suspicious queries.
- Uptime monitoring: get notified if your site becomes unreachable.
- Security alerts: enable email alerts for admin logins and file changes.
Quick Win: Set a weekly 10-minute “security check” reminder: updates, backup status, and a skim of logs/alerts.
Incident Response (If Something Goes Wrong)
- Isolate the site (maintenance mode / restrict access).
- Restore a known-good backup to a staging area; compare differences.
- Change all passwords (panel, DB, SFTP, admin users).
- Patch vulnerabilities (update plugins/themes/core, remove unused).
- Re-enable production only after scans return clean.
Security Checklist (Copy & Use)
- ✅ HTTPS forced globally, HSTS enabled
- ✅ Daily backups with off-site copy; restore tested
- ✅ CMS, plugins, themes updated weekly
- ✅ 2FA + strong passwords; login rate-limits
- ✅ WAF + DDoS protection + basic bot filtering
- ✅ Security headers (CSP, XFO, HSTS, etc.)
- ✅ WordPress hardening (.htaccess, disable file edit, XML-RPC as needed)
- ✅ Least-privilege roles; rotate credentials
- ✅ Malware scans; file-integrity monitoring
- ✅ Log review and uptime alerts
FAQs
Q1: Will security features slow down my site?
Properly configured, they usually improve performance (HTTP/2 + caching + CDN) while blocking abusive traffic.
Q2: How often should I run malware scans?
Weekly for most sites; daily for stores or high-traffic apps.
Q3: Can HostSteps help if my site is hacked?
Yes — we’ll assist with containment, cleanup, patching, and hardening to prevent recurrence.
Stay Safe with HostSteps
Security is an ongoing habit, not a one-time task. With SSL, backups, updates, and a smart WAF in place, you’ll prevent the majority of incidents and recover quickly from the rest.
🔗 Need help hardening your site? Talk to HostSteps
© HostSteps — Secure, fast, and reliable hosting for modern businesses.
